aboutsummaryrefslogtreecommitdiff
path: root/src/main/input-output/input/command_line_helper.cpp
diff options
context:
space:
mode:
authorthecharlesblake2018-02-22 23:02:05 +0000
committerthecharlesblake2018-02-22 23:02:05 +0000
commitc400250031038c6020c1174b5e1d1e6da1d9f89c (patch)
treeee80ae86368235979422db5a0ad315701b6a6bd6 /src/main/input-output/input/command_line_helper.cpp
parentMerge pull request #39 from thecharlesblake/update-objectives (diff)
downloadmetasol-c400250031038c6020c1174b5e1d1e6da1d9f89c.tar.gz
metasol-c400250031038c6020c1174b5e1d1e6da1d9f89c.zip

Add –classify option to command line helper

Diffstat (limited to 'src/main/input-output/input/command_line_helper.cpp')
-rw-r--r--src/main/input-output/input/command_line_helper.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main/input-output/input/command_line_helper.cpp b/src/main/input-output/input/command_line_helper.cpp
index 2391e3a..465bcd4 100644
--- a/src/main/input-output/input/command_line_helper.cpp
+++ b/src/main/input-output/input/command_line_helper.cpp
@@ -29,7 +29,9 @@ command_line_helper::command_line_helper()
"to be solved. Must supply either 'type' or 'rules' file")
("random", po::value<int>(), "create and solve a random solitaire "
"deal based on a seed. Must supply either 'random' or list "
- "of deals to be sold.");
+ "of deals to be sold.")
+ ("classify", "outputs a simple 'solvable/not solvable' "
+ "classification");
po::options_description hidden_options("Hidden options");
hidden_options.add_options()
@@ -60,6 +62,8 @@ bool command_line_helper::parse(int argc, const char* argv[]) {
help = (vm.count("help") != 0);
+ classify = (vm.count("classify") != 0);
+
if (vm.count("input-files")) {
input_files = vm["input-files"].as<vector<string>>();
}
@@ -168,3 +172,7 @@ int command_line_helper::get_random_deal() {
bool command_line_helper::get_help() {
return help;
}
+
+bool command_line_helper::get_classify() {
+ return classify;
+}