MCPcopy Create free account
hub / github.com/apache/orc / getOptions

Method getOptions

java/tools/src/java/org/apache/orc/tools/PrintData.java:235–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233 }
234
235 private static Options getOptions() {
236 Option help = Option.builder("h").longOpt("help")
237 .hasArg(false)
238 .desc("Provide help")
239 .build();
240 Option linesOpt = Option.builder("n").longOpt("lines")
241 .argName("LINES")
242 .desc("Sets lines of data to be printed")
243 .hasArg()
244 .build();
245
246 Options options = new Options()
247 .addOption(help)
248 .addOption(linesOpt);
249 return options;
250 }
251
252 private static void printHelp(){
253 Options opts = getOptions();

Callers 2

printHelpMethod · 0.95
parseCommandLineMethod · 0.95

Calls 2

builderMethod · 0.80
buildMethod · 0.65

Tested by

no test coverage detected