projects
/
mudpy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de65a16
)
Show full command name in help output
author
Jeremy Stanley
<fungi@yuggoth.org>
Thu, 9 May 2019 20:18:13 +0000
(20:18 +0000)
committer
Jeremy Stanley
<fungi@yuggoth.org>
Thu, 9 May 2019 20:18:13 +0000
(20:18 +0000)
When help is requested on an abbreviated command, include the full
name (rather than the provided abbreviation) in the synopsis.
mudpy/command.py
patch
|
blob
|
history
diff --git
a/mudpy/command.py
b/mudpy/command.py
index
95fb793
..
250fb6f
100644
(file)
--- 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")