This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rrt
Recipients rrt
Date 2020-09-24.23:40:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1600990802.2.0.259982030629.issue41856@roundup.psfhosted.org>
In-reply-to
Content
Consider the following example from the Python documentation:

>>> parser = argparse.ArgumentParser(prog='PROG')
>>> parser.add_argument('--foo')
>>> parser.add_argument('command')
>>> parser.add_argument('args', nargs=argparse.REMAINDER)

Now show the help:

>>> parser.parse_args(['-h'])

This prints:

usage: PROG [-h] [--foo FOO] command ...

positional arguments:
  command
  args

Note that "args" is not shown in the synopsis. I suggest that the synopsis should instead say:

usage: PROG [-h] [--foo FOO] command args...
History
Date User Action Args
2020-09-24 23:40:02rrtsetrecipients: + rrt
2020-09-24 23:40:02rrtsetmessageid: <1600990802.2.0.259982030629.issue41856@roundup.psfhosted.org>
2020-09-24 23:40:02rrtlinkissue41856 messages
2020-09-24 23:40:01rrtcreate