On 12.03.2016 00:18, Fillmore wrote:

Playing with ArgumentParser. I can't find a way to override the -h and --help options so that it provides my custom help message.

I remember everything being a lot easier using argh instead of argparse.

https://pypi.python.org/pypi/argh#examples

The doc string of a function basically is the help string which is true for arguments as well.

I hope that helps even though you asked for argparse explicitly. :-)

Best,
Sven
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to