-
Notifications
You must be signed in to change notification settings - Fork 425
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
Parser bug: first argument following clustered options is treated as a positional parameter #233
Comments
I will look at this when I get to a PC. Does this match your class? Please let me know if you use different field types or annotation attributes (other than description).
|
I was able to reproduce the issue. Thanks for reporting this! |
I will try to release picocli 2.0.3 with the fix this weekend. |
… is treated as a positional parameter. Thanks to [mgrossmann](https://github.com/mgrossmann). Closes #233
Picocli 2.0.3 has been released with this fix. |
Thanks again for the bug report! Keep ‘em coming! |
Thanks for your amazing work on this project! |
I use two boolean options. e.g. -c (compress) -e (encrypt) and one string option e.g. -o (outputFile) .
The i use parameter "1..*" FILE for inputFileNames(String[]).
Usage:
cmd -c -e -o OUTPUTFILE INPUTFILE1 INPUTFILE2 INPUTFILE3 -> work
cmd -ceo OUTPUTFILE INPUTFILE1 INPUTFILE2 INPUTFILE3 -> work
cmd -ce -o OUTPUTFILE INPUTFILE1 INPUTFILE2 INPUTFILE -> failed
will be parsed to:
outputFIle=null
inputFileNames[0]="-o"
inputFileNames[1]="OUTPUTFILE"
inputFileNames[2]="INPUTFILE1"
...
cmd -ce -o=OUTPUTFILE INPUTFILE1 INPUTFILE2 INPUTFILE -> failed
will be parsed to:
outputFIle=null
inputFileNames[0]="-o=OUTPUTFILE"
inputFileNames[1]="INPUTFILE1"
...
The text was updated successfully, but these errors were encountered: