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 <ian.d.romanick@intel.com>
This commit is contained in:
@@ -62,7 +62,10 @@ usage_fail(const char *name)
|
|||||||
"Possible options are:\n";
|
"Possible options are:\n";
|
||||||
printf(header, name);
|
printf(header, name);
|
||||||
for (const struct option *o = compiler_opts; o->name != 0; ++o) {
|
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);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user