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.
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.