98 po::options_description
all(
"Allowed options");
100 (
"help,h",
"print usage message")
101 (
"path", po::value<std::string>()->required(),
"Path to the Wow.exe")
104 po::positional_options_description pos;
107 po::variables_map vm;
110 po::store(po::command_line_parser(argc, argv).options(
all).positional(pos).run(), vm);
113 catch (std::exception& e)
115 std::cerr << e.what() <<
"\n";
118 if (vm.count(
"help"))
119 std::cout <<
all <<
"\n";
121 if (!vm.count(
"path"))
122 throw std::invalid_argument(
"Wrong number of arguments: Missing client file.");
bool all(float x)
Definition: g3dmath.h:431