blob: 642b27c980b931901774fc0143ace8da48607d91 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include <boost/program_options.hpp>
#include "command_line_helper.h"
#include <iostream>
using namespace std;
namespace po = boost::program_options;
int main(int argc, const char* argv[]) {
// Parses the command-line options
command_line_helper clh;
bool success = clh.parse(argc, argv);
if (!success) {
return 1;
}
cout << "Random deal: " << clh.get_random_deal() << "\n";
cout << "Solitaire type: " << clh.get_solitaire_type() << "\n";
cout << "Filenames: ";
for (auto filename : clh.get_input_files()) {
cout << filename << ", ";
}
cout << "\n";
return 0;
}
|