aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/java/jopt-simple/src/site/apt/index.apt
blob: 88c2af858de514b3d78209b5566631afa37d3ea6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
                      -----------
                      JOpt Simple
                      -----------

    JOpt Simple is a Java library for parsing command line options, such as those you
    might pass to an invocation of <<<javac>>>.

    In the interest of striving for simplicity, as closely as possible JOpt Simple
    attempts to honor the command line option syntaxes of
    {{{http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html} POSIX <<<getopt()>>>}}
    and
    GNU {{{http://www.gnu.org/software/libc/manual/html_node/Getopt-Long-Options.html} <<<getopt_long()>>>}}.
    It also aims to make option parser configuration and retrieval of options and their
    arguments simple and expressive, without being overly clever.

    Here are some libraries that perform the same duties as JOpt Simple:

    * {{{http://jargs.sourceforge.net} JArgs}}

    * {{{http://jakarta.apache.org/commons/cli/} Jakarta Commons CLI}}

    * {{{http://te-code.sourceforge.net/} TE-Code}} has a command line parsing library.

    * {{{http://www.cs.ubc.ca/spider/lloyd/java/argparser.html} argparser}}

    * {{{http://www.urbanophile.com/arenn/hacking/download.html} Java port of GNU getopt}}

    * {{{https://args4j.dev.java.net/} Args4J}}

    * {{{http://www.martiansoftware.com/jsap/} JSAP}}

    * {{{http://clajr.sourceforge.net} CLAJR}}

    * {{{http://ostermiller.org/utils/CmdLn.html} CmdLn}}

    * {{{http://jewelcli.sourceforge.net} JewelCli}}

    * {{{http://jcommando.sourceforge.net} JCommando}}

    * {{{http://code.google.com/p/parse-cmd/} parse-cmd}}

    * {{{http://jcommander.org} JCommander}}

    * {{{http://types.cs.washington.edu/plume-lib/api/plume/Options.html} plume-lib Options}}

    []

    I hope you'll agree that JOpt Simple tops them all in ease of use and cleanliness of
    code (although I admire JewelCli quite a bit).

    I'd love to hear your constructive {{{mailto:pholser@alumni.rice.edu} feedback}},
    especially suggestions for improvements to the library or the site!  If your project
    is using JOpt Simple, do let me know.

Projects Using JOpt Simple

    Here are some we know of or have known of:

    * {{{http://openjdk.java.net/} OpenJDK}}.
    From {{{http://weblogs.java.net/blog/mreinhold/} Mark Reinhold}}: "I thought you might
    be interested to know that we're using your jopt-simple library in the open-source
    Java Development Kit.  Thanks for writing such a nice little library!  It's far
    cleaner than any of the other alternatives out there."

    * {{{http://www.gradle.org/} Gradle}}

    * {{{http://natbraille.free.fr} NATBraille}}

    * {{{https://minecraft.net} Minecraft}}

    []