Skip to content

Conversation

@isidentical
Copy link
Member

@isidenticalisidentical commented May 14, 2019

Add an extend action to argparse

https://bugs.python.org/issue23378

Copy link
Contributor

@asottileasottile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

patch looks good, are there other nargs=... that this makes sense with? should it produce an error in the nonsensical cases? should it default to nargs='+'?

@isidentical
Copy link
MemberAuthor

nargs=N doesn't make any sense (it doesn't need extend but extend can be used like append). but i dont think we should produce a ValueError etc.

Copy link
Contributor

@furkanonderfurkanonder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix.

Copy link
Member

@gvanrossumgvanrossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup!

@miss-islington
Copy link
Contributor

@isidentical: Status check is done, and it's a success ✅ .

@miss-islingtonmiss-islington merged commit aa32a7e into python:masterMay 21, 2019
@isidenticalisidentical deleted the issue23378 branch December 7, 2019 12:09
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@isidentical@miss-islington@asottile@gvanrossum@furkanonder@the-knights-who-say-ni@bedevere-bot