use of net.sourceforge.argparse4j.inf.Namespace in project pcgen by PCGen.
the class Main method parseCommands.
/**
* Initialize Main - must be called before any other getter can be used.
*
* @param argv the command line arguments to be parsed
*/
private static Namespace parseCommands(String[] argv) {
Namespace args = getParser().parseArgsOrFail(argv);
if (args.getInt("verbose") > 0) {
Logging.setCurrentLoggingLevel(Logging.DEBUG);
}
startGMGen = args.getBoolean("gmgen");
startNPCGen = args.getBoolean("npc");
ignoreJavaVer = args.getBoolean("J");
settingsDir = args.getString("settingsdir");
campaignMode = args.getString("campaignmode");
characterSheet = args.get("D");
exportSheet = args.get("E");
partyFile = args.get("p");
characterFile = args.get("c");
outputFile = args.get("o");
startNameGen = args.get("name_generator");
return args;
}
Aggregations