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

Added argparse and multiple match/reject title options #7706

Closed
wants to merge 4 commits into from

Conversation

hitbox
Copy link

@hitbox hitbox commented Nov 30, 2015

Added support for argparse for Python >= 2.7.0 and allowance for multiple --reject-title and --match-title options. Added test test_optParse.py.

I was having a lot of frustration trying to reject multiple titles until I figured out that the program will only honor the last one given.

@jaimeMF
Copy link
Collaborator

jaimeMF commented Nov 30, 2015

We are not going to maintain two separate versions of the option handling code. I think the append action can be used in optparse to handle your case.

@hitbox
Copy link
Author

hitbox commented Nov 30, 2015

Might we switch to argparse? I saw some interest in it over a year ago. I can eliminate the old optParse class.

@jaimeMF
Copy link
Collaborator

jaimeMF commented Nov 30, 2015

Might we switch to argparse? I saw some interest in it over a year ago. I can eliminate the old optParse class.

Not until we stop supporting python2.6 (see #5697), as said in #583 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defunct PR source branch is not accessible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants