[Haskell-cafe] Re: Re: A question regarding cmdargs package

Neil Mitchell ndmitchell at gmail.com
Wed Oct 13 01:48:30 EDT 2010

> The point here was not so much removing --help, but rather that I want to
> have control over the 'standard' options (help,version,verbosity) in the
> same way as for the rest. My program might not have a version, so why
> offer --version? Or maybe I want a different name for it because the -V is
> already used for something else, which I cannot change for backwards
> compatibility. I might want another name for --help, for instance -h. The
> standard -? does not work in all shells/configurations and --help might
> look strange if all other options are of the one-dash-one-character sort. I
> would also like to configure the help text for the standard options, for
> instance for i18n or because I like starting with a lower case letter or...

That i18n is a fantastic argument - and one that really means cmdargs
has no choice but to support all the attributes on help/version.

> BTW another cool feature of an auto-magic option parsing lib is the GNU
> standard "--" (arguments after this are not to be treated as options).

cmdargs also supports this by default.

Thanks, Neil

More information about the Haskell-Cafe mailing list