On Wed, Oct 14, 2026 at 7:15 PM Eric Pugh via dev <[email protected]>
wrote:

> I’d like to see us get to done done on Picocli.  And then save looking at
> another cli tool for the Solr 12 timeframe!
>
>
I agree of course. As I said, I am late to the party, but the only thing
better than code as the source of truth is documentation as the source of
code.

With DocOpt your code to parse Args is:

Map<String, Object> result = new Docopt(usageStr).parse(args);

That's it.

usageStr is a POSIX compliant help text (loaded from a text file or
wherever else you might like).  Ref guide could just embed the posix help
text. There is a whole ecosystem of implementations of this tool in many
different languages, so if we have any python tools, or other code in
secondary languages other than java they could also use the same system.

https://www.youtube.com/watch?v=pXhcPJK5cMc

Reply via email to