From: Jeremy Stanley Date: Thu, 9 May 2019 20:18:13 +0000 (+0000) Subject: Show full command name in help output X-Git-Tag: 0.0.1~19 X-Git-Url: https://mudpy.org/gitweb?a=commitdiff_plain;h=45b739b13adf159f6c255f0c66d11f0f3161760b;p=mudpy.git 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. --- 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")