Add a flag argument with the given name(s)
Add a flag argument with the given name(s)
Add a multi value argument with the given name(s)
Add a multi value argument with the given name(s)
Add a single value argument with the given name(s)
Add a single value argument with the given name(s)
Adds value(s) to the given option and returns all values for the given option
Adds value(s) to the given option and returns all values for the given option
Applies the given function to the options with values.
Applies the given function to the options with values. If an error occurred in parsing, there will be no options
True if there is one and only one option with this name or a prefix, false otherwise.
True if there is one and only one option with this name or a prefix, false otherwise.
True if the option name or its abbreviation will return at least one value if getOptionValues
were called, false otherwise.
True if the option name or its abbreviation will return at least one value if getOptionValues
were called, false otherwise.
Map from option names and aliases to the structure that holds their values
Map from option names and aliases to the structure that holds their values
List of all option names.
List of all option names.
Gets the values for the option with the given name or prefix.
Gets the values for the option with the given name or prefix. A success requires at least one value.
Parse the given args.
Parse the given args. If an error was found, the first error is returned
Parse the given args.
Parse the given args. If an error was found, the first error is returned
returns any remaining args that were not parsed in the previous call to parse
.
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
Gets the single value for the option with the given name or prefix.
Gets the single value for the option with the given name or prefix. A success requires one and only one value.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
(optionParser: MonadOps[(OptionName, List[OptionValue])]).filter(p)
(optionParser: MonadOps[(OptionName, List[OptionValue])]).flatMap(f)
(optionParser: MonadOps[(OptionName, List[OptionValue])]).map(f)
(optionParser: MonadOps[(OptionName, List[OptionValue])]).withFilter(p)
Very simple command line parser.
1. Option specifications should be specified using methods in OptionLookup: OptionLookup.acceptFlag(), OptionLookup.acceptSingleValue(), OptionLookup.acceptMultipleValues(). 2. Call parse() to parse the argument strings. 3. Either (1) Query for option values in OptionLookup: OptionLookup.hasOptionValues and OptionLookup.optionValues(), or (2) traverse tuples of name and values using OptionParser().foreach() or similar methods.
See the README.md for more information on valid arguments to OptionParser.