adds "--test" command line arg for running specified test game, equivalent to -DtestGame VM arg.
parent
c4748e334a
commit
b039b99fcc
|
@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue