Modifier and Type | Method and Description |
---|---|
ArgumentParser |
ArgumentParserBuilder.build() |
static ArgumentParser |
ArgumentParsers.newArgumentParser(String prog)
Deprecated.
This is not thread safe. Use
ArgumentParsers.newFor(String) instead. |
static ArgumentParser |
ArgumentParsers.newArgumentParser(String prog,
boolean addHelp)
Deprecated.
This is not thread safe. Use
ArgumentParsers.newFor(String) instead. |
static ArgumentParser |
ArgumentParsers.newArgumentParser(String prog,
boolean addHelp,
String prefixChars)
Deprecated.
This is not thread safe. Use
ArgumentParsers.newFor(String) instead. |
static ArgumentParser |
ArgumentParsers.newArgumentParser(String prog,
boolean addHelp,
String prefixChars,
String fromFilePrefix)
Deprecated.
This is not thread safe. Use
ArgumentParsers.newFor(String) instead. |
Modifier and Type | Method and Description |
---|---|
static String |
TypeNameLocalization.localizeTypeNameIfPossible(ArgumentParser parser,
Class<?> type) |
Constructor and Description |
---|
HelpScreenException(ArgumentParser parser) |
Modifier and Type | Method and Description |
---|---|
void |
AppendArgumentAction.run(ArgumentParser parser,
Argument arg,
Map<String,Object> attrs,
String flag,
Object value) |
void |
CountArgumentAction.run(ArgumentParser parser,
Argument arg,
Map<String,Object> attrs,
String flag,
Object value) |
void |
StoreFalseArgumentAction.run(ArgumentParser parser,
Argument arg,
Map<String,Object> attrs,
String flag,
Object value) |
void |
VersionArgumentAction.run(ArgumentParser parser,
Argument arg,
Map<String,Object> attrs,
String flag,
Object value) |
void |
AppendConstArgumentAction.run(ArgumentParser parser,
Argument arg,
Map<String,Object> attrs,
String flag,
Object value) |
void |
StoreConstArgumentAction.run(ArgumentParser parser,
Argument arg,
Map<String,Object> attrs,
String flag,
Object value) |
void |
StoreTrueArgumentAction.run(ArgumentParser parser,
Argument arg,
Map<String,Object> attrs,
String flag,
Object value) |
void |
HelpArgumentAction.run(ArgumentParser parser,
Argument arg,
Map<String,Object> attrs,
String flag,
Object value) |
void |
StoreArgumentAction.run(ArgumentParser parser,
Argument arg,
Map<String,Object> attrs,
String flag,
Object value) |
Modifier and Type | Method and Description |
---|---|
T |
EnumStringArgumentType.convert(ArgumentParser parser,
Argument arg,
String value) |
T |
CaseInsensitiveEnumArgumentType.convert(ArgumentParser parser,
Argument arg,
String value) |
T |
ConstructorArgumentType.convert(ArgumentParser parser,
Argument arg,
String value)
Deprecated.
|
T |
EnumArgumentType.convert(ArgumentParser parser,
Argument arg,
String value)
Deprecated.
|
String |
StringArgumentType.convert(ArgumentParser parser,
Argument arg,
String value) |
File |
FileArgumentType.convert(ArgumentParser parser,
Argument arg,
String value) |
Boolean |
BooleanArgumentType.convert(ArgumentParser parser,
Argument arg,
String value) |
T |
ReflectArgumentType.convert(ArgumentParser parser,
Argument arg,
String value) |
void |
FileVerification.verify(ArgumentParser parser,
Argument arg,
File file) |
Modifier and Type | Interface and Description |
---|---|
interface |
Subparser
This interface defines Subparser used to add sub-command to
ArgumentParser . |
Modifier and Type | Method and Description |
---|---|
ArgumentParser |
ArgumentParser.defaultHelp(boolean defaultHelp)
If defaultHelp is
true , the default values of arguments are
printed in help message. |
ArgumentParser |
ArgumentParser.description(String description) |
ArgumentParser |
ArgumentParser.epilog(String epilog)
Sets the text to display after the argument help.
|
ArgumentParser |
ArgumentParserException.getParser() |
ArgumentParser |
ArgumentParser.setDefault(String dest,
Object value)
Sets parser-level default value of attribute
dest . |
ArgumentParser |
ArgumentParser.setDefaults(Map<String,Object> attrs)
Sets parser-level default values from
attrs . |
ArgumentParser |
ArgumentParser.usage(String usage)
Sets the text to display as usage line.
|
ArgumentParser |
ArgumentParser.version(String version)
Sets version string.
|
Modifier and Type | Method and Description |
---|---|
T |
ArgumentType.convert(ArgumentParser parser,
Argument arg,
String value)
Converts
value to appropriate type. |
void |
ArgumentAction.run(ArgumentParser parser,
Argument arg,
Map<String,Object> attrs,
String flag,
Object value)
Executes this action.
|
Constructor and Description |
---|
ArgumentParserException(ArgumentParser parser) |
ArgumentParserException(String message,
ArgumentParser parser) |
ArgumentParserException(String message,
ArgumentParser parser,
Argument arg) |
ArgumentParserException(String message,
Throwable cause,
ArgumentParser parser) |
ArgumentParserException(String message,
Throwable cause,
ArgumentParser parser,
Argument arg) |
ArgumentParserException(Throwable cause,
ArgumentParser parser) |
Modifier and Type | Class and Description |
---|---|
class |
ArgumentParserImpl
The application code must not use this class directly.
|
class |
SubparserImpl
The application code must not use this class directly.
|
Constructor and Description |
---|
UnrecognizedArgumentException(String message,
ArgumentParser parser,
String argument) |
UnrecognizedCommandException(String message,
ArgumentParser parser,
String command) |
Copyright © 2012–2017. All rights reserved.