What is the best way of parsing many complex comma

2019-04-06 05:28发布

问题:

I have used getopt in Python and was hoping there would be something similar in Java.

Please give a reason why your answer is better than the others.

回答1:

Commons CLI



回答2:

I use Jewelcli and it's quite good.

You can also find a discussion of different available libraries here.



回答3:

Look at Java Simple Argument Parser. Very mature and feature complete argument parser for Java. JSAP



回答4:

https://github.com/kohsuke/args4j -- has pretty good features PLUS MIT license