in bulkimport/src/main/java/com/microsoft/azure/documentdb/bulkimport/Main.java [262:285]
private static CmdLineConfiguration parseCommandLineArgs(String[] args) {
LOGGER.debug("Parsing the arguments ...");
CmdLineConfiguration cfg = new CmdLineConfiguration();
JCommander jcommander = null;
try {
jcommander = new JCommander(cfg, args);
} catch (Exception e) {
// invalid command line args
System.err.println(e.getMessage());
jcommander = new JCommander(cfg);
jcommander.usage();
System.exit(-1);
return null;
}
if (cfg.isHelp()) {
// prints out the usage help
jcommander.usage();
System.exit(0);
return null;
}
return cfg;
}