Skip to content

Commit

Permalink
Increment index to step to the other flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-trinh committed Aug 11, 2024
1 parent f45d5c2 commit c6f0f76
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,15 @@ int main(int argc, char **argv)
}
else if ((std::string(argv[i]) == "--save" || std::string(argv[i]) == "-o") && i+1 < argc) {
npz_filename = argv[i+1];
i++;
}
else if (std::string(argv[i]) == "--color" || std::string(argv[i]) == "-c") {
color_mode = true;
}
else if (std::string(argv[i]) == "--alpha" || std::string(argv[i]) == "-a") {
save_alpha = true;
}
else if (std::string(argv[i]) == "--print-cMo" && i+1 < argc) {
else if (std::string(argv[i]) == "--print-cMo") {
print_cMo = true;
}
else {
Expand Down

0 comments on commit c6f0f76

Please sign in to comment.