adds "--test" command line arg for running specified test game, equivalent to -DtestGame VM arg.

master
lodici 2017-05-11 09:12:03 +01:00
parent c4748e334a
commit b039b99fcc
1 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,7 @@ class CommandLineArgs {
private boolean isDevMode = false;
private int games = DuelConfig.DEFAULT_GAMES;
private int startLife = DuelConfig.DEFAULT_LIFE;
private String testClass;
CommandLineArgs(final String[] args) {
@ -68,6 +69,10 @@ class CommandLineArgs {
isDevMode = true;
break;
case "--test": // Runs specified test game, equivalent to -DtestGame VM arg. (eg. --test TestAura)
System.setProperty("testGame", args[i + 1].trim());
break;
}
}
}