From 0ab515159e9da15e0077d55c761ca0f326361257 Mon Sep 17 00:00:00 2001 From: aidanfnv Date: Tue, 8 Jul 2025 13:41:56 -0700 Subject: Add 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 Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> --- source/core/slang-command-options-writer.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/core/slang-command-options-writer.cpp') 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 " + "\n"; + m_builder << "See the section above for the list of categories.\n\n"; } void TextCommandOptionsWriter::_appendDescriptionForCategory(Index categoryIndex) -- cgit v1.2.3