Steven Bethard <steven.beth...@gmail.com> 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 <rep...@bugs.python.org>
<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