aboutsummaryrefslogtreecommitdiff
path: root/src/main/input-output/input/command_line_helper.cpp
diff options
context:
space:
mode:
authorCharlie Blake2018-06-07 15:40:49 +0100
committerCharlie Blake2018-06-07 15:40:49 +0100
commitdf67cafb5e9ce2ebd1c38ed59b2c71a95d33f05c (patch)
tree7412060ed127c134ede8388e337f7cedc19a65d8 /src/main/input-output/input/command_line_helper.cpp
parentAdd quick benchmark scripts (diff)
downloadmetasol-df67cafb5e9ce2ebd1c38ed59b2c71a95d33f05c.tar.gz
metasol-df67cafb5e9ce2ebd1c38ed59b2c71a95d33f05c.zip

Tidy up main

Diffstat (limited to 'src/main/input-output/input/command_line_helper.cpp')
-rw-r--r--src/main/input-output/input/command_line_helper.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/main/input-output/input/command_line_helper.cpp b/src/main/input-output/input/command_line_helper.cpp
index 92fef21..4b0942a 100644
--- a/src/main/input-output/input/command_line_helper.cpp
+++ b/src/main/input-output/input/command_line_helper.cpp
@@ -38,8 +38,6 @@ command_line_helper::command_line_helper()
"'solvability', 'benchmark' or list of deals to be solved.")
("classify", "outputs a simple 'solvable/not solvable' "
"classification")
- ("shortest-sols", "for each instance returns the shortest possible "
- "solution. cannot be supplied alongside '--solvability'")
("solvability", "calculates the solvability "
"percentage of the supplied solitaire game. Must supply "
"either 'random', 'benchmark', 'solvability' or list of deals to be "
@@ -108,8 +106,6 @@ bool command_line_helper::parse(int argc, const char* argv[]) {
benchmark = (vm.count("benchmark") != 0);
- shortest_sols = (vm.count("shortest-sols") != 0);
-
// Handle logic error scenarios
return assess_errors();
}
@@ -141,11 +137,6 @@ bool command_line_helper::assess_errors() {
return false;
}
- if (shortest_sols && solvability) {
- print_shortest_sols_error();
- return false;
- }
-
if (!solitaire_type.empty()) {
return assess_sol_type();
} else {
@@ -188,11 +179,6 @@ void command_line_helper::print_too_many_opts_error() {
print_help();
}
-void command_line_helper::print_shortest_sols_error() {
- LOG_ERROR ("Error: User cannot supply '--shortest-sols' and '--solvability'");
- print_help();
-}
-
const vector<string> command_line_helper::get_input_files() {
return input_files;
}
@@ -209,10 +195,6 @@ int command_line_helper::get_random_deal() {
return random_deal;
}
-bool command_line_helper::get_help() {
- return help;
-}
-
bool command_line_helper::get_classify() {
return classify;
}
@@ -229,10 +211,6 @@ string command_line_helper::get_describe_game_rules() {
return describe_game_rules;
}
-bool command_line_helper::get_short_sols() {
- return shortest_sols;
-}
-
bool command_line_helper::get_benchmark() {
return benchmark;
}