From 080f833b154539e8f82386832db518403e7ee73a Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Fri, 6 Apr 2018 23:19:12 +0100 Subject: Fix custom rules cmdln bug --- benchmark.py | 2 +- src/main/input-output/input/command_line_helper.cpp | 4 ++-- 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(); } - if (vm.count("rules")) { - rules_file = vm["rules"].as(); + if (vm.count("custom-rules")) { + rules_file = vm["custom-rules"].as(); } if (vm.count("random")) { -- cgit v1.2.1