Merge "recovery: Reset optind to 1 after getopt"

This commit is contained in:
Treehugger Robot
2018-05-17 21:38:26 +00:00
committed by Gerrit Code Review
2 changed files with 2 additions and 0 deletions

View File

@@ -1049,6 +1049,7 @@ Device::BuiltinAction start_recovery(Device* device, const std::vector<std::stri
continue;
}
}
optind = 1;
printf("stage is [%s]\n", stage.c_str());
printf("reason is [%s]\n", reason);

View File

@@ -317,6 +317,7 @@ int main(int argc, char** argv) {
}
}
}
optind = 1;
if (locale.empty()) {
if (has_cache) {