| 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.withAliasForceBuiltInPrefix(char prefix)
Sets a prefix character used in alias definitions to force use of a
built-in as opposed to a chained alias
|
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)
Deprecated.
Use
withUserAliases() to access the user alias
builder directly instead |
ParserBuilder<C> |
ParserBuilder.withUserAliases(String programName,
String searchLocation)
Deprecated.
Use
withUserAliases() to access the user alias
builder directly instead |
ParserBuilder<C> |
ParserBuilder.withUserAliases(String filename,
String prefix,
List<ResourceLocator> locators,
String... searchLocations)
Deprecated.
Use
withUserAliases() to access the user alias
builder directly instead |
ParserBuilder<C> |
ParserBuilder.withUserAliases(String filename,
String prefix,
String... searchLocations)
Deprecated.
Use
withUserAliases() to access the user alias
builder directly instead |
| Constructor and Description |
|---|
AliasBuilder(ParserBuilder<C> parserBuilder)
Creates a new alias builder
|
AliasBuilder(ParserBuilder<C> parserBuilder,
String name)
Creates a new alias builder
|
UserAliasSourceBuilder(ParserBuilder<C> parserBuilder) |
Copyright © 2012–2022. All rights reserved.