Andy Harrington added the comment:
Withdrawn. My error. I missed the part of the documentation that says a
*tuple*, not the list that I tried, does just what I wanted.
--
assignee: -> docs@python
components: +Documentation -Library (Lib)
nosy: +docs@python
resolution: -> invalid
st
New submission from Andy Harrington :
I now set the help string for an
argparse option with two parameters:
parser.add_argument('-s', '--substitute', nargs=2,
help='Replace first string with second',
metavar='string')
which generates a help message
-s