[darcs-users] [issue1550] general purpose command line parsing library (CmdArgs)

Trent W. Buck trentbuck at gmail.com
Sat Sep 19 03:52:10 UTC 2009

Neil Mitchell <ndmitchell at gmail.com> writes:

> [...] if you run "--no-compress --compress" then in [MOST] commands
> you'll end up with no compression. Apart from optimize where that
> would give you compression, but so would --compress --no-compress. The
> reason for all this effort is that you've flattened your flags, which
> makes it harder to work with them, and guarantees you have subtle bugs
> all over the place. (I'm not 100% sure about the effects I stated -
> they're only based on looking at the code)
> If instead you had a compress :: Bool [...] it's much simpler and
> easier to get right.


I've had a gut feeling that this was the problem, but couldn't
articulate it concisely.  I'll add this rationale to issue1457.

More information about the darcs-users mailing list