diff --git a/src/mudlib/combat/commands.py b/src/mudlib/combat/commands.py index e56dcc2..ffd2d01 100644 --- a/src/mudlib/combat/commands.py +++ b/src/mudlib/combat/commands.py @@ -244,5 +244,6 @@ def register_combat_commands(content_dir: Path) -> None: aliases=[], mode=mode, help=f"{action} with {move.name}", + hidden=True, ) ) diff --git a/src/mudlib/commands/__init__.py b/src/mudlib/commands/__init__.py index 63776a0..09b2fd0 100644 --- a/src/mudlib/commands/__init__.py +++ b/src/mudlib/commands/__init__.py @@ -18,6 +18,7 @@ class CommandDefinition: aliases: list[str] = field(default_factory=list) mode: str = "normal" help: str = "" + hidden: bool = False # Registry maps command names to definitions diff --git a/src/mudlib/commands/help.py b/src/mudlib/commands/help.py index 55d18e9..fb59f5f 100644 --- a/src/mudlib/commands/help.py +++ b/src/mudlib/commands/help.py @@ -171,7 +171,7 @@ async def cmd_commands(player: Player, args: str) -> None: for defn in _registry.values(): defn_id = id(defn) - if defn_id not in seen: + if defn_id not in seen and not defn.hidden: seen.add(defn_id) unique_commands.append(defn)