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.
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.
https://github.com/kohsuke/args4j -- has pretty good features PLUS MIT license
Look at Java Simple Argument Parser. Very mature and feature complete argument parser for Java. JSAP
I use Jewelcli and it's quite good.
You can also find a discussion of different available libraries here.
Commons CLI