From 45b739b13adf159f6c255f0c66d11f0f3161760b Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Thu, 9 May 2019 20:18:13 +0000 Subject: [PATCH] Show full command name in help output When help is requested on an abbreviated command, include the full name (rather than the provided abbreviation) in the synopsis. --- mudpy/command.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mudpy/command.py b/mudpy/command.py index 95fb793..250fb6f 100644 --- a/mudpy/command.py +++ b/mudpy/command.py @@ -161,7 +161,8 @@ def help(actor, parameters): output = "$(red)" else: output = "$(grn)" - output += parameters + "$(nrm) - " + description + "$(eol)$(eol)" + output = "%s%s$(nrm) - %s$(eol)$(eol)" % ( + output, command.subkey, description) # add the help text if provided help_text = command.get("help") -- 2.11.0