Just for completeness, there is also JCommander which is quite good IMO (I'm not a maintainer; -)
Gary On Thu, Mar 18, 2021, 05:45 Remko Popma <[email protected]> wrote: > Hi tobias, > > You may want to take a look at picocli <https://picocli.info/>. > Picocli is a modern library with support for mutually exclusive options > <https://picocli.info/#_mutually_exclusive_options> and more, like > subcommands, TAB completion, colored usage help, and allows easy > compilation to a GraalVM native image, so you can distribute your CLI as a > single executable file. > > I maintain picocli, so I am of course very very biased. :-) > > Based on this mailing list, I do not see much interest in the Commons > community in working on commons-cli or commons-cli2, but I could be wrong. > > > > > > On Thu, Mar 18, 2021 at 5:01 PM <[email protected]> wrote: > > > Is there a possibility to use mutual exklusive arguments like e.g. > > > > > > > > myapp --info regid <id> | email <email> > > > > --info --> command > > > > --regid --> first argument > > > > --email --> second argument > > > > > > > > Both argument are mutual exclusive! > > > > How to do this with cli? > > > > Are there any plans to release cli2? > > > > In cli2 it's possibe to create more complex arguments, right? > > > > > > > > >
