Input whitelist check.
Validates whenever input is contained in list of valid/accepted values.
Creates new instance of EnumValidator
Validates input
List of allowed values.
Checks whenever specified input is valid.
new Program("test") .add(new Option("s", "scope", "working scope") .acceptsValues(["user", "system"]) )
acceptsValues
See Implementation
Input whitelist check.
Validates whenever input is contained in list of valid/accepted values.