static OptionArg<List<String>> createExcludeOption( Map<String, Path> pathMap, Builder builder) { final StringBuilder sb = new StringBuilder(); printPathOptions(pathMap, sb); sb.append("This option can not be used together with --include."); return Option.builder("e", ArgumentParser.stringListParser()) .longName("exclude") .description(sb.toString()) .build(); }
static OptionArg<List<String>> createIncludeOption( Map<String, Path> pathMap, Builder builder) { final StringBuilder sb = new StringBuilder(); printPathOptions(pathMap, sb); sb.append("This option can not be used together with --exclude."); return Option .builder("i", ArgumentParser.stringListParser()) .longName("include") .description(sb.toString()) .build(); }
static OptionArg<List<String>> createIncludeOption( Map<String, Path> pathMap, Builder builder) { final StringBuilder sb = new StringBuilder(); printPathOptions(pathMap, sb); sb.append("This option can not be used together with --exclude."); return Option .builder("i", ArgumentParser.stringListParser()) .longName("include") .description(sb.toString()) .build(); }
static OptionArg<List<String>> createExcludeOption( Map<String, Path> pathMap, Builder builder) { final StringBuilder sb = new StringBuilder(); printPathOptions(pathMap, sb); sb.append("This option can not be used together with --include."); return Option.builder("e", ArgumentParser.stringListParser()) .longName("exclude") .description(sb.toString()) .build(); }
static OptionArg<List<String>> createAddOption() { return Option .builder("a", ArgumentParser.stringListParser()) .longName("add") .description( "Adds the specified paths. A path may be a file or a directory. " + "If it is a directory it will be searched recursively.") .build(); }
static OptionArg<List<String>> createAddOption() { return Option .builder("a", ArgumentParser.stringListParser()) .longName("add") .description( "Adds the specified paths. A path may be a file or a directory. " + "If it is a directory it will be searched recursively.") .build(); }
.add(Option.builder("asl", ArgumentParser.stringListParser()).build(), list, new ArgHandler<List<Object>, List<String>>() {