This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bethard
Recipients Tom.Browder, bethard
Date 2010-08-22.21:01:09
SpamBayes Score 0.0026649348
Marked as misclassified No
Message-id <1282510871.25.0.22731914925.issue9653@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2010-08-22 21:01:11bethardsetrecipients: + bethard, Tom.Browder
2010-08-22 21:01:11bethardsetmessageid: <1282510871.25.0.22731914925.issue9653@psf.upfronthosting.co.za>
2010-08-22 21:01:10bethardlinkissue9653 messages
2010-08-22 21:01:09bethardcreate