fix: CLI argument name

This commit is contained in:
Maximilian Keßler 2023-11-15 23:25:30 +01:00
parent bdc65411ae
commit f0257a1292
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -250,7 +250,7 @@ namespace Hanabi {
} }
// Parse game state options (turn or draw), ensuring at most one is given. // Parse game state options (turn or draw), ensuring at most one is given.
if (vm.count("draw") + vm.count("turn") != 1) { if (vm.count("draw-pile-size") + vm.count("turn") != 1) {
std::cout << "Conflicting options --draw and --turn." << std::endl; std::cout << "Conflicting options --draw and --turn." << std::endl;
std::cout << "Use '--help' to print a help message." << std::endl; std::cout << "Use '--help' to print a help message." << std::endl;
return std::nullopt; return std::nullopt;