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/]
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.
-
picocli
Picocli is a modern framework for building powerful, user-friendly, GraalVM-enabled command line apps with ease. It supports colors, autocompletion, subcommands, and more. In 1 source file so apps can include as source & avoid adding a dependency. Written in Java, usable from Groovy, Kotlin, Scala, etc. -
Airline 2
Java annotation-based framework for parsing Git like command line structures with deep extensibility -
JewelCLI
JewelCli uses an annotated interface definition to automatically parse and present command line arguments
CodeRabbit: AI Code Reviews for Developers
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of args4j or a related project?
Popular Comparisons
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?
- Check the sample. This is how your code will look like.
- Download the distribution or include the library from the Maven Repository.
- Write your code.
More Resources
- 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
- 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.