diff options
Diffstat (limited to 'source')
| -rw-r--r-- | source/core/slang-command-options-writer.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/source/core/slang-command-options-writer.cpp b/source/core/slang-command-options-writer.cpp index 1f1de029d..a0308c971 100644 --- a/source/core/slang-command-options-writer.cpp +++ b/source/core/slang-command-options-writer.cpp @@ -502,7 +502,13 @@ void TextCommandOptionsWriter::appendDescriptionImpl() const auto& categories = m_commandOptions->getCategories(); for (Index categoryIndex = 0; categoryIndex < categories.getCount(); ++categoryIndex) { - _appendDescriptionForCategory(categoryIndex); + const auto& category = categories[categoryIndex]; + + // Omit the value categories + if (category.kind != CategoryKind::Value) + { + _appendDescriptionForCategory(categoryIndex); + } } // Add instructions for getting help for specific categories @@ -510,7 +516,16 @@ void TextCommandOptionsWriter::appendDescriptionImpl() 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"; + m_builder << m_options.indent << "<help-category> can be: "; + + List<UnownedStringSlice> categoryNames; + for (const auto& category : categories) + { + categoryNames.add(category.name); + } + + _appendWrappedIndented(1, categoryNames, toSlice(", ")); + m_builder << "\n\n"; } void TextCommandOptionsWriter::_appendDescriptionForCategory(Index categoryIndex) |
