args4j is a small Java class library that makes it easy to parse command line options/arguments in your CUI application. See more info at [http://args4j.kohsuke.org/]
See the quick intro
- It makes command line parsing very easy by using annotations
- Generate usage text very easily
- Generate HTML/XML documentation listing all options
- Full localization support
- Designed to parse javac like options, as opposed to GNU-style (where ls -lR is considered to have two options l and R).
- Licensed under the MIT license.
- Check the sample. This is how your code will look like.
- Download the distribution or include the library from sthe Maven Repository at java.net.
- Write your code.
- A small tutorial for the use of the Starter and Args4J
- javadoc
- How to generate a documentation for your CLI
- Extend args4j to handle other Java types
- [Kohsuke's Blog: Parsing command line options in JDK 5.0 style] (http://weblogs.java.net/blog/kohsuke/archive/2005/05/parsing_command.html)
- A comparison between Commons CLI and Args4j in French