From 5e24630674e52cc9a340aa05f8f36790f0df66c4 Mon Sep 17 00:00:00 2001 From: aidanfnv Date: Thu, 31 Jul 2025 18:23:21 -0700 Subject: Omit listing values in slangc -h cmdline output, show how to list them seperately (#8012) * Omit listing values in slangc -h cmdline output, show how to list them seperately * format code (#22) Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> --------- Co-authored-by: slangbot Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> --- source/core/slang-command-options-writer.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'source/core') diff --git a/source/core/slang-command-options-writer.cpp b/source/core/slang-command-options-writer.cpp index 333f84d04..ecb5fa698 100644 --- a/source/core/slang-command-options-writer.cpp +++ b/source/core/slang-command-options-writer.cpp @@ -599,14 +599,9 @@ void TextCommandOptionsWriter::_appendDescriptionForCategory(Index categoryIndex m_builder << m_options.indent << m_options.indent; - m_builder << "<" << usageCat.name << "> can be: "; - - List optionNames; - options.getCategoryOptionNames(usageCategoryIndex, optionNames); - - _appendWrappedIndented(2, optionNames, toSlice(", ")); - - m_builder << "\n"; + m_builder << "To get a list of values that can be used for <" << usageCat.name + << ">, "; + m_builder << "use \"slangc -h " << usageCat.name << "\"\n"; } } } -- cgit v1.2.3