-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
greedy argument parsing introduced by obviously evil ;) commit: 6669f0a #109
Comments
I would either set the number of values for |
Unfortunately I don't - |
No worries, it should be fixed with #111 |
The newest version should solve the issue for you, and it was a valid bug. To expand on the issue though; the only thing I can't currently do (and realistically it's probably impossible to do) is tell when a [unlimited] multiple value stops and a positional starts. Because positionals have no specifier (unless you count |
Thank you ! I have rolled-back my change locally and could verify it works fine. Regarding the stated problem with positionals (and grammars like Now that I am implementing a simple json lexer to allow me to write a filter to get rid of null values in json streams, I am also thinking that this kind of pattern matching would be totally suited to any kind of token-based system. However, a non-text based regular expression engine is also nowhere to be found. Such a thing would certainly be overkill for what I want to do, but I am lazy and would prefer to write a simple substitution regex which works on my json tokens. Anyway, thanks again for all the fixes - I believe I am totally happy now, with the CLI at least :). |
6669f0a introduces shorthand parsing for multiple values. However, this causes subcommands to be parsed as flag-values, thus making it impossible to properly call the program.
For example, calls like this ...
... now fail as
-u
is not a valid argument. This is as--scope <url>...
has eaten all arguments until the first-flag
, then-u
is interpreted as top-level flag which it is not. Usuallyarchive
andinsert
are subcommands, andgroup
as well as-u
are required flags ofinsert
.I have made a quick-fix (notes) which might not be ready for a PR, and I am unsure whether I am fit to fix this properly. Clearly we would want to add a few tests to assure this truly works and to protect from regression.
The text was updated successfully, but these errors were encountered: