aboutsummaryrefslogtreecommitdiff
path: root/src/con_.c
diff options
context:
space:
mode:
authorGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-11-15 20:33:33 +0000
committerGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-11-15 20:42:55 +0000
commit13ddf47d80893eb4d09ca31f5469b835f24170c7 (patch)
tree57d03f2c377f2fb68e93cbb25b3ed5111c1f6fe0 /src/con_.c
parentc15101df02685a5d26f4b130f7b559eb7ed7f74f (diff)
downloadsst-13ddf47d80893eb4d09ca31f5469b835f24170c7.tar.gz
sst-13ddf47d80893eb4d09ca31f5469b835f24170c7.zip
Mark hidden stuff as unsupported in help textHEADmaster
Diffstat (limited to 'src/con_.c')
-rw-r--r--src/con_.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/con_.c b/src/con_.c
index 7552816..8359482 100644
--- a/src/con_.c
+++ b/src/con_.c
@@ -154,6 +154,9 @@ static const char *VCALLCONV GetName(struct con_cmdbase *this) {
return this->name;
}
static const char *VCALLCONV GetHelpText(struct con_cmdbase *this) {
+ if_cold (this->flags & (CON_INIT_HIDDEN | _CON_NE_HIDDEN)) {
+ return this->help - 18; // see _DEF_* macros in con_.h
+ }
return this->help;
}
static bool VCALLCONV IsRegistered(struct con_cmdbase *this) {