Helper to add --usage
and --help
options to an existing type T
.
- Type parameters:
- T:
type to which usage and help options are added
- Value parameters:
- baseOrError:
parsed
T
in case of success, or error message else- help:
whether help was requested
- usage:
whether usage was requested
- Companion:
- object