Re: [cli]

2022-01-12 Thread Remko Popma
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 
wrote:

> Given the standard format of
>
> progam [options] 
>
> 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 ?
>
> TIA
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


[cli]

2022-01-12 Thread Charles Johnson

Given the standard format of

progam [options] 

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 ?


TIA


-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org