Projects / argparse4j

argparse4j

argparse4j is Java port of the Python argparse commandline argument parser.

Tags
Licenses
Implementation

Recent releases

  •  21 Feb 2013 15:31

    Release Notes: This release 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.

    •  10 Feb 2013 16:31

      Release Notes: This release fixes incorrect handling of concatenated short options and adds Subparser alias name support.

      •  26 Jan 2013 14:06

        Release Notes: This release fixes a formatting bug when an empty string argument is involved. The additional help message is now printed for non-flag unrecognized arguments coming from a file.

        •  13 Jan 2013 16:40

          Release Notes: This release adds terminal width detection, Arguments.fileType() conversion, and mutually exclusive group support. Now Argument#help() can take FeatureControl#SUPPRESS to hide certain options from the help message. The convenient method ArgumentParser#parseArgsOrFail() was added, which handles errors and exits the program.

          •  07 Oct 2012 14:31

            Release Notes: This release adds several enhancements to the existing features. In Arg annotation, the "dest" argument is now optional. The inheritance chain is now queried when searching fields and methods. When dealing with a variable number of positional arguments, the default value is not overridden with the empty list if no argument is given.

            Screenshot

            Project Spotlight

            OpenStack4j

            A Fluent OpenStack client API for Java.

            Screenshot

            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.