cvs commit: fptools/libraries/Cabal/Distribution GetOpt.hs
Setup.hs Simple.hs
Simon Marlow
simonmar at microsoft.com
Thu Jan 6 06:04:12 EST 2005
On 06 January 2005 07:42, Isaac Jones wrote:
> ijones 2005/01/05 23:42:11 PST
>
> Modified files:
> libraries/Cabal/Distribution Setup.hs Simple.hs
> Added files:
> libraries/Cabal/Distribution GetOpt.hs
> Log:
> fixed checking for unknown args
> Long story:
>
> It seems that Marvin removed my beautiful and powerful "getOpt"
> alterations to use the System.Console one, which I had already
> deemed to be non-beautiful because of the errors it spews when
> faced with arguments it doesn't understand.
>
> I think Marvin misunderstood the API docs that seem to suggest that
> the "commands" that get passed back from getOpt are the non-matched
> arguments. In fact, non-matched arguments get returned as errors
> (ewwwww).
>
> So I had to re-apply my GetOpt module, and alter the parser
> accordingly.
It would be nice to add this functionality to System.Console.GetOpt, at
some point.
Cheers,
Simon
More information about the Cvs-libraries
mailing list