aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthecharlesblake2018-04-06 23:19:12 +0100
committerthecharlesblake2018-04-06 23:19:12 +0100
commit080f833b154539e8f82386832db518403e7ee73a (patch)
treead2b64972993b3e3d0855b2693dc959527a53723
parentMerge pull request #52 from thecharlesblake/auto-foundations-streamliner (diff)
downloadmetasol-080f833b154539e8f82386832db518403e7ee73a.tar.gz
metasol-080f833b154539e8f82386832db518403e7ee73a.zip

Fix custom rules cmdln bug

-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")) {