public abstract class CmdLineAction
extends java.lang.Object
An action can either be a switch (e.g. --switch) or an option (e.g. {«code --option value}).
| Constructor and Description |
|---|
CmdLineAction() |
| Modifier and Type | Method and Description |
|---|---|
CmdLineAction |
arg(java.lang.String arg)
Add an argument string that should be trigger this CmdLineAction.
|
boolean |
contains(java.lang.String arg)
Check whether the submitted argument string is a trigger for this CmdLineAction.
|
java.lang.String |
toString() |
public CmdLineAction arg(java.lang.String arg)
arg - The argument string to be associated with this CmdLineAction.public boolean contains(java.lang.String arg)
arg - The argument string to check.true if the argument string is associated with this CmdLineAction.arg(String)public java.lang.String toString()
toString in class java.lang.Object