java.lang.Object
coneforest.clianthus.option.Option
coneforest.clianthus.option.OptionWithoutArg
coneforest.clianthus.option.OptionCounter
A counter option. Integer option value, initially zero, increments every
time when option is processed.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
OptionCounter
Creates new option with given names.- Parameters:
names
- space-delimited names.
-
-
Method Details
-
getValue
Returns current option value. -
handle
public void handle()Increments option value by one.- Specified by:
handle
in classOptionWithoutArg
-