Constructs an option.
Returns formatted name with parameter placeholder, e.g., -f, --foo <val>.
Returns formatted name with parameter placeholder, e.g., -f, --foo <val>.
Creates an option from a formatted string.
Default value of the parameter, or null.
Name of the parameter.
Whether the option is required.
Single-character short name, or null.
Long name, or null.
Description of the flag.
Placeholder for padding when there is no short option.
Creates a flag from a formatted string.
Returns formatted name, e.g., -h, --help.
Checks whether the given query matches this flag.
Represents a command-line option with a parameter.