Open tomasbjerre opened 5 years ago
It's kind of intended as it wouldn't be possible to pass "-s" as a string argument to -v otherwise?
Maybe there could be an opt-in on the variable arity parser though?
Something like:
.variableArity().preferOtherArgsIfMatched().repeated()...
Sounds great!
Off topic: I think you can contact GitHub to have the fork reversed, make this repo main repo. And perhaps event move issues. Or I can do ask tell them to do it, as I am a member of @Softhouse on Github?
That would be awesome!
This is now the main repo :)
Thanks!
I'm using variable artity:
This works great:
But if I move single parameter arguments after arguments with variable arity:
The
-s ERROR -mv 0
is parsed as arguments to-v
.Is this intended? What I would have wanted is to have same result as in first example.
https://github.com/tomasbjerre/violations-command-line/blob/master/src/main/java/se/bjurr/violations/main/Runner.java