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 Trundle
Recipients Trundle, bethard, eric.araujo, michael.foord, terry.reedy
Date 2011-04-22.23:51:12
SpamBayes Score 0.0005525106
Marked as misclassified No
Message-id <1303516275.57.0.372298778118.issue11906@psf.upfronthosting.co.za>
In-reply-to
Content
That happens because argparse uses `os.basename(sys.argv[0])` (per default) as program name, but `sys.argv[0]` is usually a string of length 0 at interactive sessions. The tests use ``"usage: {} ...".format(program_name)`` (note that there will be two spaces for an empty `program_name`) for the expected output, while argparse only outputs one space in that case.
History
Date User Action Args
2011-04-22 23:51:15Trundlesetrecipients: + Trundle, terry.reedy, bethard, eric.araujo, michael.foord
2011-04-22 23:51:15Trundlesetmessageid: <1303516275.57.0.372298778118.issue11906@psf.upfronthosting.co.za>
2011-04-22 23:51:12Trundlelinkissue11906 messages
2011-04-22 23:51:12Trundlecreate