Popularity
5.5
Growing
Activity
7.9
-
782
33
189

Description

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/]

Code Quality Rank: L4
Programming language: Java
License: MIT License
Latest version: v2.33

args4j alternatives and similar libraries

Based on the "Command-line Argument Parsers" category.
Alternatively, view args4j alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of args4j or a related project?

Add another 'Command-line Argument Parsers' Library

README

args4j

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/]

Why should I use it?

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.

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.
  3. Write your code.

More Resources

  1. A small tutorial for the use of the Starter and Args4J
  2. javadoc
  3. How to generate a documentation for your CLI
  4. Extend args4j to handle other Java types
  5. Kohsuke's Blog: Parsing command line options in JDK 5.0 style
  6. A comparison between Commons CLI and Args4j in French


*Note that all licence references and agreements mentioned in the args4j README section above are relevant to that project's source code only.