最好的 Java CLI 解析器 [英] The best CLI parser for Java
问题描述
哪种用于 Java 的 CLI 解析器易于使用且比其他工具更具可扩展性?
What CLI parser for Java is easy to use and more scalable than others?
推荐答案
以下是一些最流行的方案.它们的功能都非常完整,并且使用了前两个我可以推荐它们.
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(带有彩色使用帮助和自动完成功能)
http://picocli.info/
picocli (with colorized usage help and autocomplete)
http://picocli.info/
JArgs
http://jargs.sourceforge.net/
GetOpt
http://www.urbanophile.com/arenn/hacking/download.html
为了完整起见,这里是我遇到的其他一些
For completeness, here are some others I've come across
Args4J
https://args4j.dev.java.net/
ArgParser
http://people.cs.ubc.ca/~lloyd/java/argparser.html
自然 CLI
http://naturalcli.sourceforge.net/
TE 代码
http://te-code.sourceforge.net/
JSAP
http://www.martiansoftware.com/jsap/
CLAJR
http://clajr.sourceforge.net/
CmdLn
http://ostermiller.org/utils/CmdLn.html
JewelCli
http://jewelcli.sourceforge.net/
联合突击队
http://jcommando.sourceforge.net/
解析-cmd
http://code.google.com/p/parse-cmd/p>
这篇关于最好的 Java CLI 解析器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!