patch applied (packages/base): RequireOrder: do not collect
unrecognised options after a non-opt
Simon Marlow
simonmar at microsoft.com
Wed Apr 26 08:11:01 EDT 2006
Wed Apr 26 05:11:10 PDT 2006 Simon Marlow <simonmar at microsoft.com>
* RequireOrder: do not collect unrecognised options after a non-opt
The documentation for RequireOrder says "no option processing after
first non-option", so it doesn't seem right that we should process the
rest of the arguments to collect the unrecognised ones. Presumably
the client wants to know about the unrecognised options up to the
first non-option, and will be using a different option parser for the
rest of the command line.
eg. before:
Prelude System.Console.GetOpt> getOpt' RequireOrder [] ["bar","--foo"]
([],["bar","--foo"],["--foo"],[])
after:
Prelude System.Console.GetOpt> getOpt' RequireOrder [] ["bar","--foo"]
([],["bar","--foo"],[],[])
M ./System/Console/GetOpt.hs -1 +1
More information about the Cvs-libraries
mailing list