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.

classification
Title: argparse mutex group should allow mandatory parameters
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.6, Python 3.3, Python 3.4, Python 3.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Mark Nolan
Priority: normal Keywords:

Created on 2017-03-28 17:43 by Mark Nolan, last changed 2022-04-11 14:58 by admin.

Messages (1)
msg290750 - (view) Author: Mark Nolan (Mark Nolan) Date: 2017-03-28 17:43
I see elsewhere, and from use, that a mutex group will not support mandatory positional parameters.

TBH, I don't understand why this should be any different from any other option, but if it must, then I think it should follow the 'required' parameter of the mutex.

So, it should be possible to have a mutex group where one option must be chosen and that option must have positional parameters.

(My first post here. Not sure of any other way to discuss with the argparse development group. Point me somewhere else if appropriate).
History
Date User Action Args
2022-04-11 14:58:44adminsetgithub: 74123
2017-03-28 17:43:18Mark Nolancreate