New submission from Reuben Thomas <r...@sc3d.org>:
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... ---------- components: Library (Lib) messages: 377469 nosy: rrt priority: normal severity: normal status: open title: argparse: auto-generated synopsis omits REMAINDER argument versions: Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41856> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com