Helper function to define allowed values for an option or argument.
This function is meant to be used with UFCS, so that it can be placed within option definition chain.
new Program("test") .add(new Option("s", "scope", "working scope") .acceptsValues(["user", "system"]) )
EnumValidator
See Implementation
Helper function to define allowed values for an option or argument.
This function is meant to be used with UFCS, so that it can be placed within option definition chain.