Package | Description |
---|---|
net.sourceforge.argparse4j.impl.action | |
net.sourceforge.argparse4j.impl.type | |
net.sourceforge.argparse4j.inf | |
net.sourceforge.argparse4j.internal |
Modifier and Type | Method and Description |
---|---|
void |
AppendArgumentAction.onAttach(Argument arg) |
void |
CountArgumentAction.onAttach(Argument arg) |
void |
StoreFalseArgumentAction.onAttach(Argument arg) |
void |
VersionArgumentAction.onAttach(Argument arg) |
void |
AppendConstArgumentAction.onAttach(Argument arg) |
void |
StoreConstArgumentAction.onAttach(Argument arg) |
void |
StoreTrueArgumentAction.onAttach(Argument arg) |
void |
HelpArgumentAction.onAttach(Argument arg) |
void |
StoreArgumentAction.onAttach(Argument arg) |
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 | Method and Description |
---|---|
Argument |
Argument.action(ArgumentAction action)
Sets the action to be taken when this argument is encountered at the
command line.
|
Argument |
ArgumentContainer.addArgument(String... nameOrFlags)
Creates new
Argument , adds it to this container and returns it. |
Argument |
Argument.choices(ArgumentChoice choice)
Sets
ArgumentChoice object which inspects value so that it
fulfills its criteria. |
<E> Argument |
Argument.choices(Collection<E> values)
Sets a collection of the allowable values for the argument.
|
<E> Argument |
Argument.choices(E... values)
Sets a collection of the allowable values for the argument.
|
Argument |
Argument.dest(String dest)
The name of the attribute to be added.
|
Argument |
Argument.help(FeatureControl ctrl)
Sets special value to control help message handling.
|
Argument |
Argument.help(String help)
Sets the brief description of what the argument does.
|
Argument |
Argument.metavar(String... metavar)
Set the name for the argument in usage messages.
|
Argument |
Argument.nargs(int n)
Sets the number of command line arguments that should be consumed.
|
Argument |
Argument.nargs(String n)
Sets the number of command line arguments that should be consumed.
|
Argument |
Argument.required(boolean required)
If
true is given, this named argument must be specified in
command line otherwise error will be issued. |
<E> Argument |
Argument.setConst(E... values)
Sets list of constant values that are not read from the command line but
are required for the various actions.
|
Argument |
Argument.setConst(Object value)
Sets constant values that are not read from the command line but are
required for the various actions.
|
<E> Argument |
Argument.setDefault(E... values)
Sets list of values which should be used if the command line argument is
not present.
|
Argument |
Argument.setDefault(FeatureControl ctrl)
Sets special value to control default value handling.
|
Argument |
Argument.setDefault(Object value)
Sets value which should be used if the command line argument is not
present.
|
<T> Argument |
Argument.type(ArgumentType<T> type)
Sets
ArgumentType object which converts command line argument to
appropriate type. |
<T> Argument |
Argument.type(Class<T> type)
Sets the type which the command line argument should be converted to.
|
Modifier and Type | Method and Description |
---|---|
T |
ArgumentType.convert(ArgumentParser parser,
Argument arg,
String value)
Converts
value to appropriate type. |
void |
ArgumentAction.onAttach(Argument arg)
Called when ArgumentAction is added to
Argument using
action(ArgumentAction) . |
void |
ArgumentAction.run(ArgumentParser parser,
Argument arg,
Map<String,Object> attrs,
String flag,
Object value)
Executes this action.
|
Constructor and Description |
---|
ArgumentParserException(String message,
ArgumentParser parser,
Argument arg) |
ArgumentParserException(String message,
Throwable cause,
ArgumentParser parser,
Argument arg) |
Modifier and Type | Class and Description |
---|---|
class |
ArgumentImpl
The application code must not use this class directly.
|
Modifier and Type | Method and Description |
---|---|
Argument |
SubparserImpl.addArgument(String... nameOrFlags) |
Copyright © 2012–2017. All rights reserved.