[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2005-01-22 (11:03) |
From: | Jon Harrop <jon@j...> |
Subject: | Re: [Caml-list] 'Pass on' argument from Arg.parse to Arg.parse_argv |
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.