This interface defines behavior of ArgumentParser.
The typical usage is set description using {@link #description(String)} andadd arguments using {@link #addArgument(String)}. To add sub-command, first call {@link #addSubparsers()} to obtain {@link Subparsers} object.{@link Subparsers} object provides necessary methods to add sub-commands. Tomake a conceptual group of arguments, first call {@link #addArgumentGroup(String)} to create {@link ArgumentGroup} object. Andadd argument to that group using {@link ArgumentGroup#addArgument(String)}. Similarly, to add the mutually exclusive group of arguments, use {@link #addMutuallyExclusiveGroup(String)} to create{@link MutuallyExclusiveGroup} object. To parse command-line arguments, call{@link #parseArgs(String[])} or several overloaded methods.
ArgumentParser
parsers a command line array into Java objects and associates each object with the corresponding command line option according to predefined schemes for options and parameters. The format specification for options is:
[-<option>\[<type>[\<<regex>\>]{<parameter>[=<default>]}\]] ...where
The format specification for parameters is:
[-<parameter>[<type>[<<regex>>]{[=<default>]}]]... [+<optionalParameter>[<type>[<<regex>>]{[=<default>]}]]... [<..>]where
|
|