mpeterv / argparse

Feature-rich command line parser for Lua
MIT License
251 stars 43 forks source link

Allow changing help option argument #4

Closed michaelmior closed 8 years ago

michaelmior commented 8 years ago

In some cases, I may want to use -h to refer to something else. It would be nice if argparse would at least detect this and disable the short form of the --help option. Alternatively, perhaps it could be possible to specify a different option to be used for the help message.

mpeterv commented 8 years ago

Like this? http://argparse.readthedocs.org/en/0.5.0/misc.html#overwriting-default-help-option

michaelmior commented 8 years ago

Whoops. Sorry about that. I obviously should have RTFM. Thanks!

mpeterv commented 8 years ago

No problem! =D