standalone: Fix --help
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 28 Jan 2020 20:18:12 +0000 (12:18 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Tue, 28 Jan 2020 22:08:12 +0000 (14:08 -0800)
Fixes: bd97b6f9 ("Command-line: Give better error messages. From #1829.")
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
StandAlone/StandAlone.cpp

index 6e4c8d3..c0dd50b 100644 (file)
@@ -654,6 +654,9 @@ void ProcessArguments(std::vector<std::unique_ptr<glslang::TWorkItem>>& workItem
                         break;
                     } else if (lowerword == "version") {
                         Options |= EOptionDumpVersions;
+                    } else if (lowerword == "help") {
+                        usage();
+                        break;
                     } else {
                         Error("unrecognized command-line option", argv[0]);
                     }