Arguments to parse.
Options definitions.
Names of options, that are to be printed first in the help printout
Version string to display in help.
Banner (summary of this program and command-line usage) to display in help.
Footer - displayed after options.
Short description - used for subcommands
Validations, that enforce some rules on groups of options
Width, to which the help output will be formatted (note that banner, footer, version and description are not affected!)
If true, then help output from this builder wouldn't list full help for subcommands, only short description
subcommands in this builder
Adds a subbuilder (subcommand) to this builder.
Adds a subbuilder (subcommand) to this builder.
All arguments after this string would be routed to this builder.
Get the value of option.
Get the value of option. If option is not found, this will throw an exception.
Name for option.
TypeTag for requested type. Usually found implicitly.
Add some more arguments to this builder.
Add some more arguments to this builder. They are appended to the end of the original list.
arg list to add
Arguments to parse.
Banner (summary of this program and command-line usage) to display in help.
Add banner string to this builder.
Add banner string to this builder. Banner should describe your program and provide a short summary on it's usage.
Banner string, can contain multiple lines. Note this is not formatted to 80 characters!
Short description - used for subcommands
Traverses the tree of subbuilders, using the provided name.
Traverses the tree of subbuilders, using the provided name.
Names of subcommand names, that lead to the needed builder, separated by \\0.
Footer - displayed after options.
Add footer string to this builder.
Add footer string to this builder. Footer will be printed in help after option definitions.
Footer string, can contain multiple lines. Note this is not formatted to 80 characters!
Get the value of option (or trailing arg) as Option.
Get the value of option (or trailing arg) as Option.
Name for option.
TypeTag for requested type. Usually found implicitly.
Retrieves a list of all supplied options (including options from subbuilders).
Find an option, that responds to this short name.
Retrieves name of the subcommand that was found in input arguments.
Returns the list of subcommand names, recursively.
Get help on options from this builder.
Get help on options from this builder. The resulting help is carefully formatted to required number of columns (default = 80, change with .setHelpWidth method), and contains info on proporties, options and trailing arguments.
Width, to which the help output will be formatted (note that banner, footer, version and description are not affected!)
Tests if this option or trailing arg was explicitly provided by argument list (not from default).
Tests if this option or trailing arg was explicitly provided by argument list (not from default).
Identifier of option or trailing arg definition
Names of options, that are to be printed first in the help printout
Add a new option definition to this builder.
Add a new option definition to this builder.
Name for new option, used as long option name in parsing, and for option identification.
Overload the char that will be used as short option name. Defaults to first character of the name.
Description for this option, for help description.
Default value to use if option is not found in input arguments (if you provide this, you can omit the type on method).
The function, that validates the parsed value
Is this option required? Defaults to false.
The name for this ortion argument, as it will appear in help. Defaults to "arg".
Hides description of this option from help (this can be useful for debugging options)
If set to true, then this option does not have any short name.
The converter for this option. Usually found implicitly.
Validations, that enforce some rules on groups of options
Options definitions.
Print help message (with version, banner, option usage and footer) to stdout.
Add new property option definition to this builder.
Add new property option definition to this builder.
Char, that will be used as prefix for property arguments.
Description for this property option, for help description.
Name for 'key' part of this option arg name, as it will appear in help option definition. Defaults to "key".
Name for 'value' part of this option arg name, as it will appear in help option definition. Defaults to "value".
Explicitly sets the needed width for the help printout.
If true, then help output from this builder wouldn't list full help for subcommands, only short description
subcommands in this builder
Get summary of current parser state.
Get summary of current parser state.
Returns a list of all options in the builder, and corresponding values for them.
Add new trailing argument definition to this builder.
Add new trailing argument definition to this builder.
Name for new definition, used for identification.
Is this trailing argument required? Defaults to true.
If this argument is not required and not found in the argument list, use this value.
The function, that validates the parsed value
Add a validation for supplied option set.
Add a validation for supplied option set.
A function, that accepts the list of names of options, that are supplied. It should return a Left with error message in case of validation failure.
Verify the builder.
Verify the builder. Parses arguments, makes sure no definitions clash, no garbage or unknown options are present, and all present arguments are in proper format. It is recommended to call this method before using the results.
If there is "--help" or "--version" option present, it prints help or version statement and exits.
Version string to display in help.
Add version string to this builder.
Add version string to this builder.
Version string, to be printed before all other things in help.
The main builder class.
Arguments to parse.
Options definitions.
Names of options, that are to be printed first in the help printout
Version string to display in help.
Banner (summary of this program and command-line usage) to display in help.
Footer - displayed after options.
Short description - used for subcommands
Validations, that enforce some rules on groups of options
Width, to which the help output will be formatted (note that banner, footer, version and description are not affected!)
If true, then help output from this builder wouldn't list full help for subcommands, only short description
subcommands in this builder