Skip to content

Commit

Permalink
Don't freeze up when no args are passed in
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-lunarg committed Jan 30, 2025
1 parent c637858 commit 3ae7193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ int main(int argn, char** argv) {
arg_parser.AddFlag("f", "file", "");
arg_parser.AddFlag("fcb", "flatten_cbuffers", "");
arg_parser.AddFlag("ci", "ci", ""); // Not advertised
if (!arg_parser.Parse(argn, argv, std::cerr)) {
if (!arg_parser.Parse(argn, argv, std::cerr) || arg_parser.GetArgs().empty()) {
PrintUsage();
return EXIT_FAILURE;
}
Expand Down

0 comments on commit 3ae7193

Please sign in to comment.