Fixup format parsing in sample app.
This Cl fixes up the format parsing so it doesn't get recognized as an invalid option. Change-Id: I92626830ef36c3de5908edeb8900afd5807b31b0 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/24520 Reviewed-by: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
parent
7b819aa162
commit
28ba9a369e
|
@ -146,8 +146,7 @@ bool ParseArgs(const std::vector<std::string>& args, Options* opts) {
|
|||
std::cerr << "Unknown output format: " << args[i] << std::endl;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (arg == "-o" || arg == "--output-name") {
|
||||
} else if (arg == "-o" || arg == "--output-name") {
|
||||
++i;
|
||||
if (i >= args.size()) {
|
||||
std::cerr << "Missing value for " << arg << std::endl;
|
||||
|
|
Loading…
Reference in New Issue