aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--benchmark.py2
-rw-r--r--src/main/input-output/input/command_line_helper.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/benchmark.py b/benchmark.py
index d790718..ce50b49 100644
--- a/benchmark.py
+++ b/benchmark.py
@@ -195,7 +195,7 @@ for rulesGen in [
for attempt in range(20):
try:
run("./cmake-build-" + runtype + "/bin/solvitaire" + flag
- + " --rules " + tempRulesFilename + " --random "
+ + " --custom-rules " + tempRulesFilename + " --random "
+ str(attempt + 1),
shell=True,
check=True,
diff --git a/src/main/input-output/input/command_line_helper.cpp b/src/main/input-output/input/command_line_helper.cpp
index e3af0cd..92fef21 100644
--- a/src/main/input-output/input/command_line_helper.cpp
+++ b/src/main/input-output/input/command_line_helper.cpp
@@ -94,8 +94,8 @@ bool command_line_helper::parse(int argc, const char* argv[]) {
solitaire_type = vm["type"].as<string>();
}
- if (vm.count("rules")) {
- rules_file = vm["rules"].as<string>();
+ if (vm.count("custom-rules")) {
+ rules_file = vm["custom-rules"].as<string>();
}
if (vm.count("random")) {