mirror of
https://github.com/unisonweb/unison.git
synced 2024-10-04 21:57:25 +03:00
Show aliases in per command help
This commit is contained in:
parent
383f8d2570
commit
6e37d28e80
@ -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 [
|
||||
|
Loading…
Reference in New Issue
Block a user