sc.threadCount = Integer.valueOf(cmd.getOptionValue("t"));
sc.run();
}
public static SimpleCLI parseArgs(String[] args) {
Options options = new Options();
options.addOption("h", "help", "print help");
// unused?
// options.addOption("n", true, "the number of packets to send");
options.addOption("p", "port", 6633, "the port to listen on");
options.addOption("t", "threads", 1, "the number of threads to run");
try {
SimpleCLI cmd = SimpleCLI.parse(options, args);
if (cmd.hasOption("h")) {
printUsage(options);
System.exit(0);