summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authoraidanfnv <aidanf@nvidia.com>2025-08-04 12:27:36 -0700
committerGitHub <noreply@github.com>2025-08-04 19:27:36 +0000
commit41314741d9bfca95abba40e58720b4ce2f2653dd (patch)
tree8d19c7bede2c58e05809ceb57869b5342795cf6d /source
parent3f12964b24f8829a4548f634463492f02b7de913 (diff)
Omit "Repro" category from default help text output (#8032)
* Omit "Repro" category from default help text output * format code (#24) 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>
Diffstat (limited to 'source')
-rw-r--r--source/core/slang-command-options-writer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/core/slang-command-options-writer.cpp b/source/core/slang-command-options-writer.cpp
index ecb5fa698..8cfade71e 100644
--- a/source/core/slang-command-options-writer.cpp
+++ b/source/core/slang-command-options-writer.cpp
@@ -504,8 +504,10 @@ void TextCommandOptionsWriter::appendDescriptionImpl()
{
const auto& category = categories[categoryIndex];
- // Omit the value categories and the "Internal" category for text output
- if (category.kind != CategoryKind::Value && category.name != toSlice("Internal"))
+ // Omit the value categories as well as the "Internal" and "Repro" categories from the text
+ // output
+ if (category.kind != CategoryKind::Value && category.name != toSlice("Internal") &&
+ category.name != toSlice("Repro"))
{
_appendDescriptionForCategory(categoryIndex);
}