[issue12284] argparse.ArgumentParser: usage example option

2017-03-13 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> works for me stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue12284] argparse.ArgumentParser: usage example option

2014-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: @Jonas do you wish to follow up on this? -- nosy: +BreamoreBoy, paul.j3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12284 ___

[issue12284] argparse.ArgumentParser: usage example option

2011-12-15 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: %(prog)s is available in epilog: -- temp.py -- import argparse epilog = \ Example usage: %(prog)s option1 option2 parser = argparse.ArgumentParser( formatter_class=argparse.RawTextHelpFormatter,

[issue12284] argparse.ArgumentParser: usage example option

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Is http://docs.python.org/dev/library/argparse#usage what you want? -- nosy: +eric.araujo versions: +Python 3.3 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12284

[issue12284] argparse.ArgumentParser: usage example option

2011-06-09 Thread Jonas H.
Jonas H. jo...@lophus.org added the comment: Nope. I want an examples section, for example from `man git log`: EXAMPLES git log --no-merges Show the whole commit history, but skip any merges git log v2.6.12.. include/scsi drivers/scsi Show all commits since

[issue12284] argparse.ArgumentParser: usage example option

2011-06-09 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12284 ___ ___ Python-bugs-list

[issue12284] argparse.ArgumentParser: usage example option

2011-06-08 Thread Jonas H.
New submission from Jonas H. jo...@lophus.org: 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:

[issue12284] argparse.ArgumentParser: usage example option

2011-06-08 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +bethard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12284 ___ ___ Python-bugs-list