Commit 4d67cdd3 authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Add in more global help text like that of Setup.hs

parent 19688b49
...@@ -76,7 +76,15 @@ updateConfig flags conf = conf { ...@@ -76,7 +76,15 @@ updateConfig flags conf = conf {
globalCommand :: CommandUI Cabal.GlobalFlags globalCommand :: CommandUI Cabal.GlobalFlags
globalCommand = Cabal.globalCommand { globalCommand = Cabal.globalCommand {
commandDescription = Nothing commandDescription = Just $ \pname ->
"Typical step for installing Cabal packages:\n"
++ " " ++ pname ++ " install [PACKAGES]\n"
++ "\nOccasionally you need to update the list of available packages:\n"
++ " " ++ pname ++ " update\n"
++ "\nFor more information about a command, try '"
++ pname ++ " COMMAND --help'."
++ "\nThis program is the command line interface to the Haskell Cabal Infrastructure."
++ "\nSee http://www.haskell.org/cabal/ for more information.\n"
} }
installCommand :: ProgramConfiguration -> CommandUI Cabal.ConfigFlags installCommand :: ProgramConfiguration -> CommandUI Cabal.ConfigFlags
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment