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 jonash
Recipients jonash
Date 2011-06-08.13:39:41
SpamBayes Score 0.0024690402
Marked as misclassified No
Message-id <1307540382.34.0.477677451975.issue12284@psf.upfronthosting.co.za>
In-reply-to
Content
I'd like to see an `examples` option added to argparse.ArgumentParser as found in many man pages.

This could also be done using the `epilog` option, but that misses the "%(proc)s" replacement which makes usage examples like this

  Example usage:
    ./script.py option1 option2

impossible.
History
Date User Action Args
2011-06-08 13:39:42jonashsetrecipients: + jonash
2011-06-08 13:39:42jonashsetmessageid: <1307540382.34.0.477677451975.issue12284@psf.upfronthosting.co.za>
2011-06-08 13:39:41jonashlinkissue12284 messages
2011-06-08 13:39:41jonashcreate