| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
This commit introduces support for required options,
which are options that cause the parser to raise
a `MissingRequiredOption` exception if not present.
Options can be marked as required by passing
`required: true` in their configuration, and any errors
caused by missing required options can be suppressed via
`suppress_errors: true`.
|
| |
|
|
|
|
|
|
| |
Rewrite the UnknownOption.getUnknownOption() to use
attr_reader :flags. And rename the initialize parameter
unknownOption to flag.
|
|
|
|
|
|
| |
Removes the MissingOption.getFlags() function
and replaces it with
attr_reader :flags
|
|
|
|
|
|
| |
A function in MissingArgument that returns
and array of all the flags that matches
the option missing an argument
|
| |
|
| |
|
|
|
|
|
|
|
| |
This allows to retrive the unknown option in
question when catching the error.
This can be useful to, for example, taylor a
spesific output for common errors amongst users.
|
| |
|
|
|