The best CLI parser for Java [duplicate]
问题 This question already has an answer here: How do I parse command line arguments in Java? 21 answers What CLI parser for Java is easy to use and more scalable than others? 回答1: Here are some of the most popular. They are all pretty feature complete, and having used the top two I can recommend them. Commons CLI http://commons.apache.org/cli/ Java Gems http://code.google.com/p/javagems/ picocli (with colorized usage help and autocomplete) http://picocli.info/ JArgs http://jargs.sourceforge.net/