views:

82

answers:

1

Currently when I enter invalid options or omit positional arguments, argparse kicks me back to the prompt and displays the usage for my app. This is ok, but I would rather automatically display the full help listing (that explains the options, etc) than require the user to type

./myscript.py -h

Thanks!

Jamie

+1  A: 

This thread over at Google groups might help.

http://groups.google.com/group/argparse-users/browse_thread/thread/2dacd5fed110bd0c?pli=1

AJ
That worked perfectly!! Thanks :)
jpswain.w