diff options
| author | Charlie Blake | 2018-10-13 22:33:07 +0100 |
|---|---|---|
| committer | GitHub | 2018-10-13 22:33:07 +0100 |
| commit | b78faa72859e37f41503db1815e5496f327d20b8 (patch) | |
| tree | f5ec04f085779c03045fab051eb0bb519d4bfd96 /src/main/input-output/input/command_line_helper.cpp | |
| parent | Merge pull request #97 from thecharlesblake/comma-bug-ctd (diff) | |
| parent | Add json printing of initial deal (diff) | |
| download | metasol-b78faa72859e37f41503db1815e5496f327d20b8.tar.gz metasol-b78faa72859e37f41503db1815e5496f327d20b8.zip | |
Merge pull request #98 from thecharlesblake/deal-print
Deal print
Diffstat (limited to 'src/main/input-output/input/command_line_helper.cpp')
| -rw-r--r-- | src/main/input-output/input/command_line_helper.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/main/input-output/input/command_line_helper.cpp b/src/main/input-output/input/command_line_helper.cpp index 365fe3f..ae0f9c4 100644 --- a/src/main/input-output/input/command_line_helper.cpp +++ b/src/main/input-output/input/command_line_helper.cpp @@ -56,9 +56,10 @@ command_line_helper::command_line_helper() " runs first with both streamliners and a 10% timeout. If this" " is unsuccessful (unsolvable or timeout), then runs again without streamliners.") ("benchmark", "outputs performance statistics for the solver on the " - "supplied solitaire game. Must supply " - "either 'random', 'benchmark', 'solvability' or list of deals to be " - "solved."); + "supplied solitaire game. Must supply " + "either 'random', 'benchmark', 'solvability' or list of deals to be " + "solved.") + ("deal-only", "outputs the starting deal for a given game type & random seed as json"); po::options_description hidden_options("Hidden options"); hidden_options.add_options() @@ -97,6 +98,8 @@ bool command_line_helper::parse(int argc, const char* argv[]) { classify = (vm.count("classify") != 0); + deal_only = (vm.count("deal-only") != 0); + if (vm.count("input-files")) { input_files = vm["input-files"].as<vector<string>>(); } @@ -273,6 +276,10 @@ bool command_line_helper::get_classify() { return classify; } +bool command_line_helper::get_deal_only() { + return deal_only; +} + uint64_t command_line_helper::get_cache_capacity() { return cache_capacity; } |
