args4j is a small Java class library that makes it easy to parse command line options/arguments in your CUI application.

Why should I use it?

See my quick intro.

How can I use it?

  1. Check the sample. This is how your code will look like.
  2. Download the distribution or include the library from the Maven Repository at dev.java.net.
  3. Write your code.

More Resource

  1. A small "tutorial" for the use of the Starter and Args4J
  2. Maven reports
  3. Changes between versions, also available as RSS feed
  4. javadoc
  5. How to generate a documentation for your CLI
  6. Extend args4j to handle other Java types
  7. Kohsuke's Blog: Parsing command line options in JDK 5.0 style
  8. A comparison between Commons CLI and Args4j in French

Continous Build/Integration

A continous integration of Args4J is done by Apache Gump currently four times a day. Here are some links for that: