Add <help-category> list and hint on usage in slangc -h#7638
Merged
aidanfnv merged 4 commits intoshader-slang:masterfrom Jul 8, 2025
Merged
Add <help-category> list and hint on usage in slangc -h#7638aidanfnv merged 4 commits intoshader-slang:masterfrom
aidanfnv merged 4 commits intoshader-slang:masterfrom
Conversation
Contributor
Author
|
/format |
Contributor
|
🌈 Formatted, please merge the changes from this PR |
Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
csyonghe
approved these changes
Jul 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For #7088
The output of
slangc --helpis very long, and although it is split into subsections based on categories, it is not immediately obvious from the wall of text that the-hoption can take a category as a value to only display that category. You have to look in the "General" category near the top of the help output to find that-hcan take an optional value<help-category>. Furthermore, these categories are not listed in the output.This change adds a new value category for
<help-category>values as the last help category, listing all of the preceding categories (and itself), with this message at the end of the text output advising users that they can narrow down the output ofslangc -h.