From: Jon Harrop <jon@jdh30.plus.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] 'Pass on' argument from Arg.parse to Arg.parse_argv
Date: Sat, 22 Jan 2005 11:05:26 +0000 [thread overview]
Message-ID: <200501221105.27087.jon@jdh30.plus.com> (raw)
In-Reply-To: <20050121164812.GA16353@furbychan.cocan.org>
On Friday 21 January 2005 16:48, Richard Jones wrote:
> ...
> but this unfortunately doesn't work, because the program doesn't get
> beyond the StdArg call to Arg.parse before printing this error message
> and exiting:
>
> ./prog: unknown option `--foobar'.
> [followed by usage message]
>
> Is there a way to do this? I'd like Arg.parse to ignore unknown args.
What about providing your StdArg module with a way to let you register new
arguments and either let you specify how they will be parsed or parse them
separately afterwards?
Cheers,
Jon.
next prev parent reply other threads:[~2005-01-22 11:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-21 16:48 Richard Jones
2005-01-22 11:05 ` Jon Harrop [this message]
2005-01-22 16:29 ` [Caml-list] " Martin Willensdorfer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200501221105.27087.jon@jdh30.plus.com \
--to=jon@jdh30.plus.com \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox