简体   繁体   中英

What is the best way of parsing many complex command-line arguments in Java?

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 use Jewelcli and it's quite good.

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

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

https://github.com/kohsuke/args4j - 具有相当不错的功能PLUS MIT许可证

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM