Argparse4j is an open source Java library based on the argparse application written by Steven Bethard.
Among its features we can mention support for positional and optional arguments, variable number of arguments, read additional arguments from file, print default values in help message, and many more.
Product's homepage
Requirements:
· Java 2 Standard Edition Runtime Environment
What's New in This Release: [ read full changelog ]
· This version fixes a bug where an argument was processed twice with concatenated short options.
· The following new features were added: argument/sub-command abbreviations, usage text override, ${prog} substitution in version text, sub-command aliases, and count() action.
· Argument.type(Class) now supports valueOf() static method for conversion
· It also now supports enums directly.
· The behavior of nargs("*") for optional arguments are slightly changed for some corner cases.