Skip to content

Commit 7d904a6

Browse files
committed
use contains instead of count
1 parent bf5ab53 commit 7d904a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,20 @@ int main(int argc, char* argv[]) {
5252
.run(),
5353
vm);
5454

55-
if (vm.count("help")) {
55+
if (vm.contains("help")) {
5656
ShowUsage(argv[0], desc);
5757
return 0;
5858
}
5959

6060
po::notify(vm);
61-
if (vm.count("format")) {
61+
if (vm.contains("format")) {
6262
verbose_mode = true;
6363
table_format = vm["format"].as<std::string>();
6464
if (table_format != "old" && table_format != "new") {
6565
throw std::runtime_error(
6666
"Invalid format - must be 'old' or 'new'");
6767
}
68-
} else if (vm.count("verbose")) {
68+
} else if (vm.contains("verbose")) {
6969
if (table_format.empty())
7070
table_format = "new";
7171
}

0 commit comments

Comments
 (0)