Package coneforest.cli
Class OptionFlag
- java.lang.Object
-
- coneforest.cli.Option
-
- coneforest.cli.OptionWithoutArg<Boolean>
-
- coneforest.cli.OptionFlag
-
public class OptionFlag extends OptionWithoutArg<Boolean>
Class representing a flag. Boolean option value, initially false, set to true every time when option is processed.
-
-
Constructor Summary
Constructors Constructor Description OptionFlag(String names)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
getValue()
Returns current option value.void
handle()
Sets option value to true.
-
-
-
Constructor Detail
-
OptionFlag
public OptionFlag(String names)
-
-