summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraidanfnv <aidanf@nvidia.com>2025-07-31 18:23:21 -0700
committerGitHub <noreply@github.com>2025-08-01 01:23:21 +0000
commit5e24630674e52cc9a340aa05f8f36790f0df66c4 (patch)
treefdc79146167a549cbc5a0215aae340f08312eb2d
parent96346cd67f79fae6b603d720b6d9634c2b89c829 (diff)
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 <ellieh+slangbot@nvidia.com> Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
-rw-r--r--source/core/slang-command-options-writer.cpp11
1 files changed, 3 insertions, 8 deletions
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<UnownedStringSlice> 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";
}
}
}