[New-bugs-announce] [issue14039] Add "metavar" argument to add_subparsers() in argparse

Nick Coghlan report at bugs.python.org
Fri Feb 17 00:51:44 CET 2012


New submission from Nick Coghlan <ncoghlan at gmail.com>:

Currently, using add_subparsers() means that the entire list of subcommands is added to the main usage message. This gets rather unwieldy when there are a lot of subcommands.

It would be nice if the add_subparsers() method accepted a "metavar" argument that would be substituted into the usage string instead of using the subparser list directly.

----------
components: Library (Lib)
messages: 153516
nosy: bethard, ncoghlan
priority: normal
severity: normal
stage: needs patch
status: open
title: Add "metavar" argument to add_subparsers() in argparse
type: enhancement
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14039>
_______________________________________


More information about the New-bugs-announce mailing list