equal
deleted
inserted
replaced
1222 all.remove("warn-if-resolved"); |
1222 all.remove("warn-if-resolved"); |
1223 } |
1223 } |
1224 |
1224 |
1225 all.put(CMD_FILENAME, new OptionDescriptor() { |
1225 all.put(CMD_FILENAME, new OptionDescriptor() { |
1226 @Override |
1226 @Override |
1227 public Collection<String> options() { |
1227 public List<String> options() { |
1228 List<String> ret = new ArrayList<>(); |
1228 List<String> ret = new ArrayList<>(); |
1229 ret.add(CMD_FILENAME); |
1229 ret.add(CMD_FILENAME); |
1230 return ret; |
1230 return ret; |
1231 } |
1231 } |
1232 @Override |
1232 @Override |
1312 = parser.accepts("hash-modules", getMessage("main.opt.hash-modules")) |
1312 = parser.accepts("hash-modules", getMessage("main.opt.hash-modules")) |
1313 .withRequiredArg() |
1313 .withRequiredArg() |
1314 .withValuesConvertedBy(new PatternConverter()); |
1314 .withValuesConvertedBy(new PatternConverter()); |
1315 |
1315 |
1316 OptionSpec<Void> help |
1316 OptionSpec<Void> help |
1317 = parser.acceptsAll(Set.of("h", "help", "?"), getMessage("main.opt.help")) |
1317 = parser.acceptsAll(List.of("h", "help", "?"), getMessage("main.opt.help")) |
1318 .forHelp(); |
1318 .forHelp(); |
1319 |
1319 |
1320 OptionSpec<Void> helpExtra |
1320 OptionSpec<Void> helpExtra |
1321 = parser.accepts("help-extra", getMessage("main.opt.help-extra")); |
1321 = parser.accepts("help-extra", getMessage("main.opt.help-extra")); |
1322 |
1322 |
1345 = parser.accepts("man-pages", getMessage("main.opt.man-pages")) |
1345 = parser.accepts("man-pages", getMessage("main.opt.man-pages")) |
1346 .withRequiredArg() |
1346 .withRequiredArg() |
1347 .withValuesConvertedBy(DirPathConverter.INSTANCE); |
1347 .withValuesConvertedBy(DirPathConverter.INSTANCE); |
1348 |
1348 |
1349 OptionSpec<List<Path>> modulePath |
1349 OptionSpec<List<Path>> modulePath |
1350 = parser.acceptsAll(Set.of("p", "module-path"), |
1350 = parser.acceptsAll(List.of("p", "module-path"), |
1351 getMessage("main.opt.module-path")) |
1351 getMessage("main.opt.module-path")) |
1352 .withRequiredArg() |
1352 .withRequiredArg() |
1353 .withValuesConvertedBy(DirPathConverter.INSTANCE); |
1353 .withValuesConvertedBy(DirPathConverter.INSTANCE); |
1354 |
1354 |
1355 OptionSpec<Version> moduleVersion |
1355 OptionSpec<Version> moduleVersion |