You are correct. With Commons Cli you will have to write a custom HelpFormatter to provide end users with more detail about the positional parameters.
You may be interested in https://picocli.info/ which provides this functionality out of the box, along with colored help, autocomplete and support for easily turning your CLIs into native binaries. (Disclaimer: I wrote it.) Enjoy! On Thu, Jan 13, 2022 at 8:50 AM Charles Johnson <[email protected]> wrote: > Given the standard format of > > progam [options] <argument> > > I am confused how Commons Cli treats the last above. Obviously > CommandLine.getArgList will get that argument. But that doesn't help me > when it comes to HelpFomatter. That seems only to know about Options. Am > I to understand that the Option class has to be used for arguments too, > if I want to tell the user about <argument>? > > TIA > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
