Package coneforest.cli
Class OptionToggle
java.lang.Object
coneforest.cli.Option
coneforest.cli.OptionWithoutArg
coneforest.cli.OptionToggle
A toggle option. Boolean option value, initially false, toggles every time
when option is processed.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
OptionToggle
Creates new option with given names.- Parameters:
names
- space-delimited names.
-
-
Method Details
-
getValue
Returns the current option value. -
handle
public void handle()Toggles option value.- Specified by:
handle
in classOptionWithoutArg
-