Package coneforest.cli
Class OptionToggle
- java.lang.Object
-
- coneforest.cli.Option
-
- coneforest.cli.OptionWithoutArg
-
- coneforest.cli.OptionToggle
-
public class OptionToggle extends OptionWithoutArg
Class representing a toggle. Boolean option value, initially false, toggles every time when option is processed.
-
-
Constructor Summary
Constructors Constructor Description OptionToggle(String names)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
getValue()
Returns the current option value.void
handle()
Toggles option value.
-
-
-
Constructor Detail
-
OptionToggle
public OptionToggle(String names)
-
-
Method Detail
-
getValue
public Boolean getValue()
Returns the current option value.
-
handle
public void handle()
Toggles option value.- Specified by:
handle
in classOptionWithoutArg
-
-