<command name> [<option>=<value>] [<argument_value>]Example:
command_name option1=value1 option2=value argumentA argumentB argumentCIn this command line, the diagnostic command receives five parameters, two options named
option1
and option2
, and three arguments.
argumentA's position is 0, argumentB's position is 1 and argumentC's
position is 2.
Modifier and Type | Field and Description |
---|---|
private final String | |
private final String | |
private final boolean | |
private final boolean | |
private final String | |
private final boolean | |
private final int | |
private final String |
Access | Constructor and Description |
---|---|
pack-priv | DiagnosticCommandArgumentInfo(String name, String description, String type, String defaultValue, boolean mandatory, boolean option, boolean multiple, int position)
|
Modifier and Type | Method and Description |
---|---|
pack-priv String | Returns: the default value as a String if a default value is defined, null otherwise.Returns the default value as a String if a default value is defined, null otherwise. |
pack-priv String | |
pack-priv String | |
pack-priv int | Returns: the expected position of this argument if it is not an option, -1 otherwise.Returns the expected position of this argument if it is not an option, -1 otherwise. |
pack-priv String | |
pack-priv boolean | Returns: true if the argument is mandatory,
false otherwiseReturns |
pack-priv boolean | Returns: true if the argument can be specified multiple times,
false otherwiseReturns |
pack-priv boolean | Returns: true if the argument is an option,
false otherwiseReturns |
defaultValue | back to summary |
---|---|
private final String defaultValue |
description | back to summary |
---|---|
private final String description |
mandatory | back to summary |
---|---|
private final boolean mandatory |
multiple | back to summary |
---|---|
private final boolean multiple |
name | back to summary |
---|---|
private final String name |
option | back to summary |
---|---|
private final boolean option |
position | back to summary |
---|---|
private final int position |
type | back to summary |
---|---|
private final String type |
DiagnosticCommandArgumentInfo | back to summary |
---|---|
pack-priv DiagnosticCommandArgumentInfo(String name, String description, String type, String defaultValue, boolean mandatory, boolean option, boolean multiple, int position) |
getDefault | back to summary |
---|---|
pack-priv String getDefault() Returns the default value as a String if a default value is defined, null otherwise.
|
getDescription | back to summary |
---|---|
pack-priv String getDescription() Returns the argument description.
|
getName | back to summary |
---|---|
pack-priv String getName() Returns the argument name.
|
getPosition | back to summary |
---|---|
pack-priv int getPosition() Returns the expected position of this argument if it is not an option, -1 otherwise. Argument position if defined from left to right, starting at zero and ignoring the diagnostic command name and options.
|
getType | back to summary |
---|---|
pack-priv String getType() Returns the argument type.
|
isMandatory | back to summary |
---|---|
pack-priv boolean isMandatory() Returns
|
isMultiple | back to summary |
---|---|
pack-priv boolean isMultiple() Returns
|
isOption | back to summary |
---|---|
pack-priv boolean isOption() Returns
|