in src/main/java/com/amazon/neptune/gremlin/driver/example/NeptuneGremlinSigV4Example.java [109:119]
private static CommandLine parseArgs(final String[] args, final Options options) {
final CommandLineParser parser = new BasicParser();
final HelpFormatter formatter = new HelpFormatter();
try {
return parser.parse(options, args);
} catch (ParseException e) {
formatter.printHelp(NeptuneGremlinSigV4Example.class.getSimpleName(), options);
throw new RuntimeException("Invalid command line args");
}
}