diff options
author | Alejandro Piñeiro <[email protected]> | 2018-01-04 16:38:00 +0100 |
---|---|---|
committer | Alejandro Piñeiro <[email protected]> | 2018-01-05 08:52:22 +0100 |
commit | 937b210551ef7c243976f0c0240395827a72ef8b (patch) | |
tree | 652e1e9f950d815dfec16a1f5efaf8051666f62e | |
parent | 4a0c24f2dd97c670259a7ab0ced701dbf9bb5dd7 (diff) |
glsl/standalone: point which arguments are mandatory
Every now and then I execute the standalone compiler, get the
non-version error, and need to remember what I'm doing wrong
Reviewed-by: Ian Romanick <[email protected]>
-rw-r--r-- | src/compiler/glsl/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/compiler/glsl/main.cpp b/src/compiler/glsl/main.cpp index 123e41f9dcc..e082bd69757 100644 --- a/src/compiler/glsl/main.cpp +++ b/src/compiler/glsl/main.cpp @@ -62,7 +62,10 @@ usage_fail(const char *name) "Possible options are:\n"; printf(header, name); for (const struct option *o = compiler_opts; o->name != 0; ++o) { - printf(" --%s\n", o->name); + printf(" --%s", o->name); + if (o->has_arg == required_argument) + printf(" (mandatory)"); + printf("\n"); } exit(EXIT_FAILURE); } |