OptionExt
Adds extension methods to org.apache.commons.cli.Option
.
Value members
Concrete methods
Sets argument name and returns modified option.
Sets argument name and returns modified option.
- Value Params
- name
argument name
Sets number of arguments and returns modified option.
Sets number of arguments and returns modified option.
- Value Params
- count
number of arguments
Sets description and returns modified option.
Sets description and returns modified option.
- Value Params
- desc
description
Sets long name of option and returns modified option.
Sets long name of option and returns modified option.
- Value Params
- name
long name of option
Maps option value to type T.
Maps option value to type T.
- Value Params
- mapper
value mapper
- Throws
- NoSuchElementException
if option value not present
Sets option type and returns modified option.
Sets option type and returns modified option.
- Value Params
- optType
option type
Sets whether option has an optional argument and returns modified option.
Sets whether option has an optional argument and returns modified option.
- Value Params
- optional
specifies whether argument is optional
Sets whether option is required and returns modified option.
Sets whether option is required and returns modified option.
- Value Params
- mandatory
specifies whether option is required