1
0
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:
PeteAudinate 2022-05-24 20:23:09 +01:00 committed by GitHub
parent de215ef978
commit c692be41cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}