MCPcopy Index your code
hub / github.com/apache/orc / parseOptions

Method parseOptions

java/tools/src/java/org/apache/orc/tools/KeyTool.java:97–112  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

95 }
96
97 private static CommandLine parseOptions(String[] args) throws ParseException {
98 Options options = new Options();
99
100 options.addOption(
101 Option.builder("h").longOpt("help").desc("Provide help").build());
102 options.addOption(
103 Option.builder("o").longOpt("output").desc("Output filename")
104 .hasArg().build());
105 CommandLine cli = new DefaultParser().parse(options, args);
106 if (cli.hasOption('h')) {
107 HelpFormatter formatter = new HelpFormatter();
108 formatter.printHelp("key", options);
109 System.exit(1);
110 }
111 return cli;
112 }
113
114 public static void main(Configuration conf,
115 String[] args

Callers 1

KeyToolMethod · 0.95

Calls 3

builderMethod · 0.80
printHelpMethod · 0.80
buildMethod · 0.65

Tested by

no test coverage detected