Skip to content

Commit

Permalink
fix: rename variable to avoid clash with optarg (#734)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeteAudinate authored May 24, 2022
1 parent de215ef commit c692be4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/CLI/App.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2844,9 +2844,9 @@ class App {
break;
}
if(validate_optional_arguments_) {
std::string optarg = args.back();
optarg = op->_validate(optarg, 0);
if(!optarg.empty()) {
std::string arg = args.back();
arg = op->_validate(arg, 0);
if(!arg.empty()) {
break;
}
}
Expand Down

0 comments on commit c692be4

Please sign in to comment.