Show aliases in per command help

This commit is contained in:
Jonas De Vuyst 2019-10-13 14:39:31 +08:00
parent 383f8d2570
commit 6e37d28e80

View File

@ -766,7 +766,7 @@ help = InputPattern
[isHelp -> Just msg] -> Left msg
[cmd] -> case Map.lookup cmd commandsByName of
Nothing -> Left . warn $ "I don't know of that command. Try `help`."
Just pat -> Left $ I.help pat
Just pat -> Left $ showPatternHelp pat
_ -> Left $ warn "Use `help <cmd>` or `help`.")
where
commandsByName = Map.fromList [