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

Magnus Therning magnus at therning.org
Tue Oct 12 01:32:46 EDT 2010


On 11/10/10 22:04, Neil Mitchell wrote:
> Hi Ben,
>
>>>> How can I disable the standard arguments 'help' and 'version'?
>
> In general I suggest you email the author of the cmdargs package
> directly, as well as cc'ing the mailing list (otherwise the author
> might miss this message, as I did!)
>
> In CmdArgs there is currently no way to suppress either --help or
> --version, but I am currently reviewing a patch (from you!) and expect
> that the next version will have both these features. The hard part is
> making sure the defaults match what people expect and that the options
> to modify the behaviour are discoverable and natural, but I'm sure
> I'll find something.

This makes me curious.  What's the use case where you want to allow the user
to pass arguments on the command line, but you don't want that user to
be able
to use '--help' to find out what arguments may be passed?

/M

-- 
Magnus Therning                        (OpenPGP: 0xAB4DFBA4)
magnus@therning.org           Jabber: magnus@therning.org
http://therning.org/magnus         identi.ca|twitter: magthe

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20101012/31a0d244/signature.bin


More information about the Haskell-Cafe mailing list