We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf5ab53 commit 7d904a6Copy full SHA for 7d904a6
src/main.cpp
@@ -52,20 +52,20 @@ int main(int argc, char* argv[]) {
52
.run(),
53
vm);
54
55
- if (vm.count("help")) {
+ if (vm.contains("help")) {
56
ShowUsage(argv[0], desc);
57
return 0;
58
}
59
60
po::notify(vm);
61
- if (vm.count("format")) {
+ if (vm.contains("format")) {
62
verbose_mode = true;
63
table_format = vm["format"].as<std::string>();
64
if (table_format != "old" && table_format != "new") {
65
throw std::runtime_error(
66
"Invalid format - must be 'old' or 'new'");
67
68
- } else if (vm.count("verbose")) {
+ } else if (vm.contains("verbose")) {
69
if (table_format.empty())
70
table_format = "new";
71
0 commit comments