MCPcopy Create free account
hub / github.com/SummerSec/SPATool / initCliArgs

Method initCliArgs

src/main/java/com/sumsec/ui/main.java:58–75  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

56 }
57 public main(){}
58 private static void initCliArgs(String[] args) {
59 CommandLineParser parser = new org.apache.commons.cli.DefaultParser();
60
61 OPTIONS.addOption("h", "help", false, "Print this help message");
62 OPTIONS.addOption("v", "version", false, "Print the version information and exit");
63 OPTIONS.addOption("d", "debug", false, "Enable debug mode");
64
65 try {
66 commandLine = parser.parse(OPTIONS, args);
67 if (commandLine.hasOption("h")) {
68
69 }
70 }catch (Exception e) {
71
72 e.printStackTrace();
73 }
74
75 }
76
77
78}

Callers 1

mainMethod · 0.95

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected