KhronosGroup / KhronosGroup/glslang
Some command line usage errors don't print messages
- Dominant language
- C++
- Stars
- 3.6k
- Forks
- 989
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 31
Description
Some mistakes in invoking glslang on the command line aren't clearly reported, only re-printing the whole usage text string with no explanation of what went wrong.
The one I ran into is I was trying to compile an hlsl shader and e.g. `glslang -H test.hlsl` doesn't work as it doesn't specify the shader stage. It's an obvious error in retrospect but I had to debug glslang and breakpoint on `usage()` to see why.
Some other errors are reported, e.g. `glslang -gVS test.frag` will print:
```
glslang.exe: Error: cannot generate debug information unless linking to generate code (use -h for usage)
```
In general I think any call to `usage()` from the command line tool as a result of an error should print what the error is. Looking at the source it seems a few of the resource-shifting and backing-type change options would also fail opaquely in this way.
Contributor guide
Assessment
This issue has not been assessed yet.