argparse
Sven R. Kunze
srkunze at mail.de
Sat Mar 12 07:21:26 EST 2016
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
More information about the Python-list
mailing list