Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

argparse mutex group should allow mandatory parameters #74123

Open
MarkNolan mannequin opened this issue Mar 28, 2017 · 1 comment
Open

argparse mutex group should allow mandatory parameters #74123

MarkNolan mannequin opened this issue Mar 28, 2017 · 1 comment
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@MarkNolan
Copy link
Mannequin

MarkNolan mannequin commented Mar 28, 2017

BPO 29937

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2017-03-28.17:43:18.709>
labels = ['type-feature', 'library']
title = 'argparse mutex group should allow mandatory parameters'
updated_at = <Date 2017-03-28.17:43:18.709>
user = 'https://bugs.python.org/MarkNolan'

bugs.python.org fields:

activity = <Date 2017-03-28.17:43:18.709>
actor = 'Mark Nolan'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2017-03-28.17:43:18.709>
creator = 'Mark Nolan'
dependencies = []
files = []
hgrepos = []
issue_num = 29937
keywords = []
message_count = 1.0
messages = ['290750']
nosy_count = 1.0
nosy_names = ['Mark Nolan']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue29937'
versions = ['Python 3.3', 'Python 3.4', 'Python 3.5', 'Python 3.6']

@MarkNolan
Copy link
Mannequin Author

MarkNolan mannequin commented Mar 28, 2017

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).

@MarkNolan MarkNolan mannequin added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Mar 28, 2017
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement
Projects
Status: Features
Development

No branches or pull requests

0 participants