Fix import_deps_checker to use the correct OptionsParser factory method.
@@ -212,10 +212,11 @@ public class Main {
@VisibleForTesting
static Options parseCommandLineOptions(String[] args) throws IOException {
- OptionsParser optionsParser = OptionsParser.newOptionsParser(Options.class);
- optionsParser.setAllowResidue(false);
- optionsParser.enableParamsFileSupport(
- new ShellQuotedParamsFilePreProcessor(FileSystems.getDefault()));
+ OptionsParser optionsParser =
+ OptionsParser.newOptionsParser(
+ /* allowResidue=*/ false,
+ new ShellQuotedParamsFilePreProcessor(FileSystems.getDefault()),
+ Options.class);
optionsParser.parseAndExitUponError(args);
Options options = optionsParser.getOptions(Options.class);
