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 paul.j3
Recipients paul.j3, rhettinger, terence.honles
Date 2021-04-18.05:46:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618724788.3.0.690673555349.issue43874@roundup.psfhosted.org>
In-reply-to
Content
This is a well known (if not fixed) issue - if subparsers is required, then a dest is needed to give a working error message.  Looks like we've variously talked about documenting the requirement, or using some sort of substitute for the missing name.

One of my higher-voted SO answers: 

https://stackoverflow.com/questions/23349349/argparse-with-required-subparser/23354355#23354355

https://bugs.python.org/issue29298

https://github.com/python/cpython/pull/18564

https://github.com/python/cpython/pull/3027

https://github.com/python/cpython/pull/3680
History
Date User Action Args
2021-04-18 05:46:28paul.j3setrecipients: + paul.j3, rhettinger, terence.honles
2021-04-18 05:46:28paul.j3setmessageid: <1618724788.3.0.690673555349.issue43874@roundup.psfhosted.org>
2021-04-18 05:46:28paul.j3linkissue43874 messages
2021-04-18 05:46:28paul.j3create