Uses of Class
com.github.rvesse.airline.builder.ParserBuilder
Packages that use ParserBuilder
-
Uses of ParserBuilder in com.github.rvesse.airline.builder
Fields in com.github.rvesse.airline.builder declared as ParserBuilderMethods in com.github.rvesse.airline.builder that return ParserBuilderModifier and TypeMethodDescriptionParserBuilder.withAliasesChaining()
Sets that aliases may be defined in terms of other aliasesParserBuilder.withAliasesOverridingBuiltIns()
Sets that aliases should override built-in commandsParserBuilder.withAliasForceBuiltInPrefix
(char prefix) Sets a prefix character used in alias definitions to force use of a built-in as opposed to a chained aliasParserBuilder.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.withCommandAbbreviation()
Sets that command abbreviation is enabledParserBuilder.withCommandFactory
(CommandFactory<C> commandFactory) Specifies the command factory to useParserBuilder.withCompositionAnnotations
(String... annotationClassNames) ParserBuilder.withCompositionAnnotations
(Collection<String> annotationClassNames) Specifies the class names of annotations that Airline should consider to mark a field for further inspection and injection to enable composition.ParserBuilder.withDefaultCommandFactory()
Specifies that the default command factory should be usedParserBuilder.withDefaultCompositionAnnotations()
Configures the parser to use the default set of composition annotations.ParserBuilder.withDefaultErrorHandler()
Sets that the default error handler should be usedParserBuilder.withDefaultNumericTypeConverter()
Indicates that default numeric type conversion should be usedParserBuilder.withDefaultOptionParsers()
Configures the CLI to use the default set of option parsers in addition to any previously registeredParserBuilder.withDefaultTypeConverter()
Sets that the default type converter should be usedParserBuilder.withErrorHandler
(ParserErrorHandler errorHandler) Sets the error handler to useParserBuilder.withFlagNegationPrefix
(String prefix) Sets the flag negation prefix, this is used to determine whether to set a flag option (a zero arity option) tofalse
rather than the usual behaviour of setting it totrue
.ParserBuilder.withNumericTypeConverter
(NumericTypeConverter converter) Indicates the desired numeric type converter to use, this is passed as an argument to the given type converterParserBuilder.withOnlyDefaultOptionParsers()
Configures the CLI to use only the default set of option parsersParserBuilder.withOptionAbbreviation()
Sets that option abbreviation is enabledParserBuilder.withOptionParser
(OptionParser<C> optionParser) Configures the CLI to use the given option parserParserBuilder.withOptionParsers
(OptionParser<C>... optionParsers) Configures the CLI to use the given option parsersCliBuilder.withParser()
ParserBuilder.withTypeConverter
(TypeConverter converter) Sets the type converter for the parserParserBuilder.withUserAliases
(String programName) Deprecated.ParserBuilder.withUserAliases
(String programName, String searchLocation) Deprecated.UsewithUserAliases()
to access the user alias builder directly insteadParserBuilder.withUserAliases
(String filename, String prefix, String... searchLocations) Deprecated.UsewithUserAliases()
to access the user alias builder directly insteadParserBuilder.withUserAliases
(String filename, String prefix, List<ResourceLocator> locators, String... searchLocations) Deprecated.UsewithUserAliases()
to access the user alias builder directly insteadConstructors in com.github.rvesse.airline.builder with parameters of type ParserBuilderModifierConstructorDescriptionAliasBuilder
(ParserBuilder<C> parserBuilder) Creates a new alias builderAliasBuilder
(ParserBuilder<C> parserBuilder, String name) Creates a new alias builderUserAliasSourceBuilder
(ParserBuilder<C> parserBuilder)
withUserAliases()
to access the user alias builder directly instead