protected function getSupportedOptions()

in src/InspectorCLI.hack [41:59]


  protected function getSupportedOptions(): vec<CLIOptions\CLIOption> {
    return vec[
      CLIOptions\with_required_string(
        $path ==> {
          $this->outputPath = $path;
        },
        'File path to use for output',
        '--output',
        '-o',
      ),
      CLIOptions\flag(
        () ==> {
          $this->open = true;
        },
        'Automatically open the generated file',
        '--open',
      ),
    ];
  }