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

BUG: Fixed multi-value argument parsing #61

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lassoan
Copy link
Member

@lassoan lassoan commented Apr 25, 2017

When a multi-value argument was passed to the command-line parser, all subsequent parameters were considered part of the argument.

The root cause of the problem was that the check that compared a parameter to a known argument was incorrect: the parameter name
contained the prefix (--argname) and this string was searched among argument names (such as argname).

Fixed by parsing each parameter after a multi-value argument. If a known argument is found, it is not added to the multi-value argument.

@jcfr jcfr force-pushed the fix-multi-value-cmdline-arg-parsing branch 2 times, most recently from dc801f9 to acc4baa Compare May 6, 2017 02:45
@jcfr
Copy link
Member

jcfr commented May 6, 2017

Now that we have testing on all three platform (along with automatic upload of packages as GitHub release when integrated into master), we will get a better idea.

Thanks for your patience.

@jcfr
Copy link
Member

jcfr commented May 6, 2017

xref #11

@jcfr jcfr force-pushed the fix-multi-value-cmdline-arg-parsing branch from acc4baa to dad68fa Compare October 10, 2017 04:21
@jcfr
Copy link
Member

jcfr commented Oct 10, 2017

Topic rebase against current master

@jcfr jcfr force-pushed the master branch 5 times, most recently from 9b578a5 to e70f8b5 Compare January 27, 2022 14:15
When a multi-value argument was passed to the command-line parser, all subsequent parameters were considered part of the argument.

The root cause of the problem was that the check that compared a parameter to a known argument was incorrect: the parameter name
contained the prefix (--argname) and this string was searched among argument names (such as argname).

Fixed by parsing each parameter after a multi-value argument. If a known argument is found, it is not added to the multi-value argument.
@jcfr jcfr force-pushed the fix-multi-value-cmdline-arg-parsing branch from dad68fa to 968733d Compare May 4, 2022 06:04
@jcfr
Copy link
Member

jcfr commented May 4, 2022

⚠️ AppVeyor build explicitly cancelled to free the worker and speed up the release of v0.1.31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants