public final class Argument extends Object implements Serializable
| Constructor and Description |
|---|
Argument(String flag,
String arg)
Constructs a commandline Argument, which consists of a flag and an
optional arg value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendArgValue(String arg)
Appends to the argument value.
|
String |
getArgValue()
Returns the argument value, or null if a flag argument that has
no arg accompanying it.
|
String |
getFlag()
Returns the flag, or null if a positional argument.
|
void |
setArgValue(String arg)
Sets the argument value.
|
public Argument(String flag, String arg)
flag - the flag (if any)arg - the arg (if any)public String getFlag()
public String getArgValue()
public void setArgValue(String arg)
arg - the argument value, or null if a flag argument that
has no arg accompanying it.public void appendArgValue(String arg)
arg - the argument value to appendCopyright © 2025. All rights reserved.