From 13ddf47d80893eb4d09ca31f5469b835f24170c7 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 15 Nov 2025 20:33:33 +0000 Subject: Mark hidden stuff as unsupported in help text --- src/con_.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/con_.c') 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) { -- cgit v1.2.3-54-g00ecf