mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-30 20:53: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;
|
break;
|
||||||
}
|
}
|
||||||
if(validate_optional_arguments_) {
|
if(validate_optional_arguments_) {
|
||||||
std::string optarg = args.back();
|
std::string arg = args.back();
|
||||||
optarg = op->_validate(optarg, 0);
|
arg = op->_validate(arg, 0);
|
||||||
if(!optarg.empty()) {
|
if(!arg.empty()) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user