mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-30 12:43:52 +00:00
fix: rename variable to avoid clash with optarg (#734)
https://linux.die.net/man/3/optarg
This commit is contained in:
parent
de215ef978
commit
c692be41cf
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user