-
Notifications
You must be signed in to change notification settings - Fork 422
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
Parse Multiple Commands and their options from one line #319
Comments
The issue you mentioned (#127) resulted in the current picocli behaviour: picocli expects the command line to contain a hierarchy of subcommands. So if it sees a command line like this:
... picocli expects I believe this is the convention used by most other command line apps. That said, I would not oppose an |
I would like such an option, too. It would allow to use subcommands for grouping options. |
Hi @bmaxwell and @kaibioinfo, the plan is that picocli 4.0 will add support for composite repeating groups. The goal is that argument groups will support:
This is currently work in progress, and an early (but insufficient - lacking support for repeating composite arguments) version is currently in master. The #199 ticket has some comments that describe the current state of things and follow-up plans. |
In issue #127 , it looked like picocli could parse out multiple commands, but I am having issues.
It looks like it parses the top level Command and then 1 sub command, then it warns the 2nd command is unmatched, it appears it is looking at the 1st subcommand instead of the top level command to match. Is there something missing in the setup or is this currently not possible?
[picocli WARN] Unmatched arguments: [def, -d, dvalue]
picocli.CommandLine command: Config
picocli.CommandLine command: abc
Since there are no positional parameters, I was trying to get Config, abc, def all parsed.
The text was updated successfully, but these errors were encountered: