Package org.rwtodd.args
Class AccumulatingParam
- All Implemented Interfaces:
NoArgParam,Param
A Param that counts the number of times it is seen. It starts counting from the
default value, which is 0 if not provided.
-
Field Summary
Fields inherited from class org.rwtodd.args.BasicNoArgParam
helpText, paramNames -
Constructor Summary
ConstructorsConstructorDescriptionAccumulatingParam(Collection<String> names, int dflt, String help) AccumulatingParam(Collection<String> names, String help) -
Method Summary
Methods inherited from class org.rwtodd.args.BasicNoArgParam
addHelp, addToMap, getValue
-
Constructor Details
-
AccumulatingParam
-
AccumulatingParam
-
-
Method Details
-
process
Description copied from interface:NoArgParamProcess a parameter found on the command-line.- Parameters:
param- the name of the parameter.- Throws:
ArgParserException- when there is a problem processing the parameter.
-