mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 15:14:39 +00:00
Suppress MSVC warnings and a Codacy warning
This commit is contained in:
parent
d3127eb737
commit
556d935491
@ -561,11 +561,11 @@ private:
|
|||||||
tCompoundArgument[1] != '-') {
|
tCompoundArgument[1] != '-') {
|
||||||
++it;
|
++it;
|
||||||
for (size_t j = 1; j < tCompoundArgument.size(); j++) {
|
for (size_t j = 1; j < tCompoundArgument.size(); j++) {
|
||||||
auto tCurrentArgument = std::string{'-', tCompoundArgument[j]};
|
auto tHypotheticalArgument = std::string{'-', tCompoundArgument[j]};
|
||||||
if (auto tIterator = mArgumentMap.find(tCurrentArgument);
|
auto tIterator2 = mArgumentMap.find(tHypotheticalArgument);
|
||||||
tIterator != mArgumentMap.end()) {
|
if (tIterator2 != mArgumentMap.end()) {
|
||||||
auto tArgument = tIterator->second;
|
auto tArgument = tIterator2->second;
|
||||||
it = tArgument->consume(it, end, tCurrentArgument);
|
it = tArgument->consume(it, end, tHypotheticalArgument);
|
||||||
} else {
|
} else {
|
||||||
throw std::runtime_error("Unknown argument");
|
throw std::runtime_error("Unknown argument");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user