| Package | Description |
|---|---|
| com.github.rvesse.airline.builder |
| Modifier and Type | Field and Description |
|---|---|
protected ParserBuilder<C> |
CliBuilder.parserBuilder |
| Modifier and Type | Method and Description |
|---|---|
ParserBuilder<C> |
ParserBuilder.withAliasesChaining()
Sets that aliases may be defined in terms of other aliases
|
ParserBuilder<C> |
ParserBuilder.withAliasesOverridingBuiltIns()
Sets that aliases should override built-in commands
|
ParserBuilder<C> |
ParserBuilder.withArgumentsSeparator(String separator)
Sets the arguments separator, this is a token used to indicate the point
at which no further options will be seen and all further tokens should be
treated as arguments.
|
ParserBuilder<C> |
ParserBuilder.withCommandAbbreviation()
Sets that command abbreviation is enabled
|
ParserBuilder<C> |
ParserBuilder.withCommandFactory(CommandFactory<C> commandFactory)
Specifies the command factory to use
|
ParserBuilder<C> |
ParserBuilder.withDefaultCommandFactory()
Specifies that the default command factory should be used
|
ParserBuilder<C> |
ParserBuilder.withDefaultErrorHandler()
Sets that the default error handler should be used
|
ParserBuilder<C> |
ParserBuilder.withDefaultNumericTypeConverter()
Indicates that default numeric type conversion should be used
|
ParserBuilder<C> |
ParserBuilder.withDefaultOptionParsers()
Configures the CLI to use the default set of option parsers in addition
to any previously registered
|
ParserBuilder<C> |
ParserBuilder.withDefaultTypeConverter()
Sets that the default type converter should be used
|
ParserBuilder<C> |
ParserBuilder.withErrorHandler(ParserErrorHandler errorHandler)
Sets the error handler to use
|
ParserBuilder<C> |
ParserBuilder.withFlagNegationPrefix(String prefix)
Sets the flag negation prefix, this is used to determine whether to set a
flag option (a zero arity option) to
false rather than the usual
behaviour of setting it to true. |
ParserBuilder<C> |
ParserBuilder.withNumericTypeConverter(NumericTypeConverter converter)
Indicates the desired numeric type converter to use, this is passed as an
argument to the given type converter
|
ParserBuilder<C> |
ParserBuilder.withOnlyDefaultOptionParsers()
Configures the CLI to use only the default set of option parsers
|
ParserBuilder<C> |
ParserBuilder.withOptionAbbreviation()
Sets that option abbreviation is enabled
|
ParserBuilder<C> |
ParserBuilder.withOptionParser(OptionParser<C> optionParser)
Configures the CLI to use the given option parser
|
ParserBuilder<C> |
ParserBuilder.withOptionParsers(OptionParser<C>... optionParsers)
Configures the CLI to use the given option parsers
|
ParserBuilder<C> |
CliBuilder.withParser() |
ParserBuilder<C> |
ParserBuilder.withTypeConverter(TypeConverter converter)
Sets the type converter for the parser
|
ParserBuilder<C> |
ParserBuilder.withUserAliases(String programName)
Reads in user aliases from the default configuration file in the default
location.
|
ParserBuilder<C> |
ParserBuilder.withUserAliases(String programName,
String searchLocation)
Reads in user aliases from the default configuration file in the default
location
|
ParserBuilder<C> |
ParserBuilder.withUserAliases(String filename,
String prefix,
String... searchLocations)
Reads in user aliases from the default configuration file in the default
location
|
Copyright © 2012–2018. All rights reserved.