Adds a prefix string to help output

This commit is contained in:
sloum 2020-11-01 06:01:17 -08:00
parent 53de1b5662
commit 4f166ca61a
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ func (c *client) doCommand(action string, values []string) {
c.DrawMessage()
case "HELP", "?":
if val, ok := ERRS[values[0]]; ok {
c.SetMessage(val, false)
c.SetMessage("Usage: " + val, false)
} else {
msg := fmt.Sprintf("%q is not a valid command; help syntax: %s", values[0], ERRS[action])
c.SetMessage(msg, false)