Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The best CLI parser for Java [duplicate]

What CLI parser for Java is easy to use and more scalable than others?

like image 274
Max Avatar asked Oct 06 '09 10:10

Max


1 Answers

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/

  • GetOpt
    http://www.urbanophile.com/arenn/hacking/download.html

EDIT: For completeness, here are some others I've come across

  • JOpt Simple
    http://jopt-simple.sourceforge.net/

  • Args4J
    https://args4j.dev.java.net/

  • ArgParser
    http://people.cs.ubc.ca/~lloyd/java/argparser.html

  • Natural CLI
    http://naturalcli.sourceforge.net/

  • TE-Code
    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/

  • JCommando
    http://jcommando.sourceforge.net/

  • Parse-cmd
    http://code.google.com/p/parse-cmd/

like image 61
user86614 Avatar answered Sep 24 '22 03:09

user86614