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:42:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1600990951.1.0.564601469106.issue41856@roundup.psfhosted.org>
In-reply-to
Content
A workaround to help users for now is:

>>> parser.add_argument('args', metavar='...', nargs=argparse.REMAINDER)

as then at least the help entry corresponds to the synopsis:

positional arguments:
  command
  ...

And with a `help` string, this can be clarified further, e.g.:

>>> parser.add_argument('args', metavar='...', nargs=argparse.REMAINDER, help='arguments to the command')
History
Date User Action Args
2020-09-24 23:42:31rrtsetrecipients: + rrt
2020-09-24 23:42:31rrtsetmessageid: <1600990951.1.0.564601469106.issue41856@roundup.psfhosted.org>
2020-09-24 23:42:31rrtlinkissue41856 messages
2020-09-24 23:42:31rrtcreate