Package gw.lang.gosuc
Class GosucArg
java.lang.Object
gw.lang.gosuc.GosucArg
-
Field Details
-
PROJECT
-
PARSER
-
ARGS
-
_name
-
_value
-
_desc
-
_bRequired
private boolean _bRequired -
_bFlag
private boolean _bFlag -
_bMatched
private boolean _bMatched -
_error
-
-
Constructor Details
-
GosucArg
-
-
Method Details
-
getName
-
getValue
-
setValue
-
isRequired
public boolean isRequired() -
isFlag
public boolean isFlag() -
getDescription
-
isMatched
public boolean isMatched() -
setMatched
void setMatched(boolean bMatched) -
getError
-
setError
-
hasError
public boolean hasError() -
toString
-
match
- Parameters:
args
- the arguments in the command line with the consumed ones removed from the beginning- Returns:
- the number of args consumed
-
parseArgs
-