diff options
| author | aidanfnv <aidanf@nvidia.com> | 2025-07-08 13:41:56 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-08 20:41:56 +0000 |
| commit | 0ab515159e9da15e0077d55c761ca0f326361257 (patch) | |
| tree | 845185acb6a753c1ec99ba6970c1d23936399fcc /source/core/slang-command-options-writer.cpp | |
| parent | e52885347076f3dfbf96cb5b898fabf9b4c9562d (diff) | |
Add <help-category> list and hint on usage in slangc -h (#7638)
* Add category list at end of slangc -h output
* Use value category for categories
* format code (#12)
Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
* Regenerate cmdline reference
---------
Co-authored-by: slangbot <ellieh+slangbot@nvidia.com>
Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to 'source/core/slang-command-options-writer.cpp')
| -rw-r--r-- | source/core/slang-command-options-writer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/core/slang-command-options-writer.cpp b/source/core/slang-command-options-writer.cpp index 308cc4984..1f1de029d 100644 --- a/source/core/slang-command-options-writer.cpp +++ b/source/core/slang-command-options-writer.cpp @@ -504,6 +504,13 @@ void TextCommandOptionsWriter::appendDescriptionImpl() { _appendDescriptionForCategory(categoryIndex); } + + // Add instructions for getting help for specific categories + m_builder << "Getting Help for Specific Categories\n"; + m_builder << "=====================================\n\n"; + m_builder << "To get help for a specific category of options or values, use: slangc -h " + "<help-category>\n"; + m_builder << "See the <help-category> section above for the list of categories.\n\n"; } void TextCommandOptionsWriter::_appendDescriptionForCategory(Index categoryIndex) |
