Steven Bethard <[email protected]> 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,
epilog=epilog)
parser.parse_args()
------------------------------
$ python temp.py -h
usage: temp.py [-h]
optional arguments:
-h, --help show this help message and exit
Example usage:
temp.py option1 option2
------------------------------
Did you need more than that?
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue12284>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com