CommandLineExt
Adds extension methods to org.apache.commons.cli.CommandLine
.
Value members
Concrete methods
Gets argument at specified index or returns default if argument not present.
Gets argument at specified index or returns default if argument not present.
- Value Params
- default
default value
- index
argument index
Creates sequence corresponding to supplied options indicating whether each option is set or not.
Creates sequence corresponding to supplied options indicating whether each option is set or not.
- Value Params
- opts
options
Creates sequence corresponding to supplied options indicating whether each option is set or not.
Creates sequence corresponding to supplied options indicating whether each option is set or not.
- Value Params
- more
additional options
- one
option
Maps argument at specified index to type T.
Maps argument at specified index to type T.
- Value Params
- index
argument index
- mapper
value mapper
Maps argument at specified index to type T or returns default if argument not present.
Maps argument at specified index to type T or returns default if argument not present.
- Value Params
- default
default value
- index
argument index
- mapper
value mapper
Maps option value to type T.
Maps option value to type T.
- Value Params
- mapper
value mapper
- opt
option
- Throws
- NoSuchElementException
if option value not present
Maps option value to type T or returns default if option value not present.
Maps option value to type T or returns default if option value not present.
- Value Params
- default
default value
- mapper
value mapper
- opt
option