[issue14454] argparse metavar list parameter with nargs=k

2012-03-30 Thread Andy Harrington
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

[issue14454] argparse metavar list parameter with nargs=k

2012-03-30 Thread Andy Harrington
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