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.
|
|