Package com.beust.jcommander
Class JCommander.Builder
java.lang.Object
com.beust.jcommander.JCommander.Builder
- Enclosing class:
JCommander
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionacceptUnknownOptions
(boolean b) addCommand
(Object command) addCommand
(String name, Object command, String... aliases) Adds a factory to lookup string converters.Adds the provided arg object to the set of objects that this commander will parse arguments into.allowAbbreviatedOptions
(boolean b) allowParameterOverwriting
(boolean b) atFileCharset
(Charset charset) build()
columnSize
(int columnSize) defaultProvider
(IDefaultProvider provider) Define the default provider for this instance.expandAtSign
(Boolean expand) Disables expanding@file
.programName
(String name) Set the program name (used only in the usage).resourceBundle
(ResourceBundle bundle) Sets theResourceBundle
to use for looking up descriptions.usageFormatter
(IUsageFormatter usageFormatter) verbose
(int verbose)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addObject
Adds the provided arg object to the set of objects that this commander will parse arguments into. -
resourceBundle
Sets theResourceBundle
to use for looking up descriptions. Set this tonull
to use description text directly. -
args
-
console
-
expandAtSign
Disables expanding@file
. JCommander supports the@file
syntax, which allows you to put all your options into a file and pass this file as parameter @param expandAtSign whether to expand@file
. -
programName
Set the program name (used only in the usage). -
columnSize
-
defaultProvider
Define the default provider for this instance. -
addConverterFactory
Adds a factory to lookup string converters. The added factory is used prior to previously added factories.- Parameters:
factory
- the factory determining string converters
-
verbose
-
allowAbbreviatedOptions
-
acceptUnknownOptions
-
allowParameterOverwriting
-
atFileCharset
-
addConverterInstanceFactory
-
addCommand
-
addCommand
-
usageFormatter
-
build
-