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

appropriately handling option parsing by adding '--'s and removing '--'s #35

Open
wants to merge 1 commit into
base: glue-0.9
Choose a base branch
from

Conversation

oanise93
Copy link

@oanise93 oanise93 commented Nov 8, 2019

Issue #, if available:

Description of changes:
According to the documentation, the function getResolvedOptions expects the options parameter to contain arguments without '--' prepended to them. However, in some cases when the function is checking for reserved arguments, it assumes that the options are prepended with --. This allows arguments that should be reserved to "pass" these checks but end up generating a argparse.ArgumentError: argument --<option>: conflicting option string: --<option> error because the same option is trying to be added twice. This pull request tries to solve this issue and have the correct errors raised when this occurs.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@oanise93 oanise93 force-pushed the modify_resolve_options branch from 53256d1 to 182ef6e Compare November 8, 2019 16:13
Sign up for free to 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.

1 participant