A class, that lazily encapsulates a map inside.
The main builder class.
The main builder class.
Arguments to parse.
Options definitions.
Names of options, that are to be printed first in the help printout
Version string to display in help.
Banner (summary of this program and command-line usage) to display in help.
Footer - displayed after options.
Short description - used for subcommands
Width, to which the help output will be formatted (note that banner, footer, version and description are not affected!)
If true, then help output from this builder wouldn't list full help for subcommands, only short description
subcommands in this builder
Helper trait for generaton of validate
methods on ScallopConf.
A class to hold a reference to not-yet-computed option values.
A class to hold a reference to not-yet-computed option values.
Basically, this is a lazy option - it batches up all operations, and evaluates the value only as the last resort.
Use this trait to make your ScallopConf serializable.
Use this trait to make your ScallopConf serializable. Warning: this serialization method expects your ScallopConf class to have public constructor that accepts Seq[String] or List[String] as a single parameter.
If your class does not have such constructor, you will need to implement serialization/deserialization logic yourself (see https://github.com/scallop/scallop/issues/137)
Converter from list of plain strings to something meaningful.
An enumeration of possible arg types by number of arguments they can take.
Parses the trailing arguments (including the arguments to last option).
Parses the trailing arguments (including the arguments to last option). Uses simple backtraking algorithm.
Handler function for numeric types which expects a NumberFormatException and prints a more helpful error message.
Handler function for numeric types which expects a NumberFormatException and prints a more helpful error message.
the type name to display
Create a converter for an argument with a single value.
Create a converter for an argument with a single value.
the conversion function to use, which may throw an exception on error
an error handler function for writing custom error messages
Convenience variable to permit testing.