Steven Bethard <[email protected]> added the comment:

A simpler approach might be to do this before your call to parse_args:

if len(sys.argv[0]) == 1:
    parser.print_help()

Does that solve your problem?

----------

_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue9653>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to