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

Joachim Breitner mail at joachim-breitner.de
Tue Oct 12 04:46:56 EDT 2010


Am Dienstag, den 12.10.2010, 16:42 +1100 schrieb Ivan Lazar Miljenovic:
> On 12 October 2010 16:32, Magnus Therning <magnus at therning.org> wrote:
> >
> > 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?
> When you don't want to bother defining the help options/descriptions? :p

note that people expect "cmd --help" to at least do nothing. So if your
program is called "launchMissiles", please make it at least spit out a
message like "your evil dictator was too lazy to write a help message"
when it is called with --help.

(That is if you are sharing your program. Not sure if you should share
"launchMissiles" at all.)


Joachim Breitner
  e-Mail: mail at joachim-breitner.de
  Homepage: http://www.joachim-breitner.de
  ICQ#: 74513189
  Jabber-ID: nomeata at joachim-breitner.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20101012/2e6605e7/attachment.bin

More information about the Haskell-Cafe mailing list