function with_required_enum()

in src/CLIOptions.hack [135:143]


function with_required_enum<T>(
  enumname<T> $enum,
  (function(T):void) $setter,
  string $help_text,
  string $long,
  ?string $short = null,
): CLIOption {
  return new CLIOptionWithRequiredEnumValue($enum, $setter, $help_text, $long, $short);
}