mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 15:14:39 +00:00
Fix broken indentation
This commit is contained in:
parent
2dc9121acf
commit
91cd2477de
@ -69,7 +69,7 @@ bool upsert(std::map<KeyType, ElementType>& aMap, KeyType const& aKey, ElementTy
|
|||||||
bool starts_with(const std::string& haystack, const std::string& needle) {
|
bool starts_with(const std::string& haystack, const std::string& needle) {
|
||||||
return needle.length() <= haystack.length()
|
return needle.length() <= haystack.length()
|
||||||
&& std::equal(needle.begin(), needle.end(), haystack.begin());
|
&& std::equal(needle.begin(), needle.end(), haystack.begin());
|
||||||
};
|
}
|
||||||
|
|
||||||
// Get value at index from std::list
|
// Get value at index from std::list
|
||||||
template <typename T>
|
template <typename T>
|
||||||
@ -542,7 +542,7 @@ class ArgumentParser {
|
|||||||
if (tIterator != mArgumentMap.end()) {
|
if (tIterator != mArgumentMap.end()) {
|
||||||
auto tArgumentObject = tIterator->second;
|
auto tArgumentObject = tIterator->second;
|
||||||
tNumArgs = tArgumentObject->mNumArgs;
|
tNumArgs = tArgumentObject->mNumArgs;
|
||||||
std::vector<std::string> tArgumentsForRecursiveParsing = { "", "-" + tArgument };
|
std::vector<std::string> tArgumentsForRecursiveParsing = {"", "-" + tArgument};
|
||||||
while (tNumArgs > 0 && i < argc) {
|
while (tNumArgs > 0 && i < argc) {
|
||||||
i += 1;
|
i += 1;
|
||||||
if (i < argc) {
|
if (i < argc) {
|
||||||
|
Loading…
Reference in New Issue
Block a user