From: simonmar Date: Fri, 21 Jan 2005 11:04:39 +0000 (+0000) Subject: [project @ 2005-01-21 11:04:39 by simonmar] X-Git-Tag: Initial_conversion_from_CVS_complete~1210 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=73fabb8997b9ed762fd386259670f3a2fbc57501;p=ghc-hetmet.git [project @ 2005-01-21 11:04:39 by simonmar] Update the --help text --- diff --git a/ghc/utils/ghc-pkg/Main.hs b/ghc/utils/ghc-pkg/Main.hs index a3aa329..ab27e08 100644 --- a/ghc/utils/ghc-pkg/Main.hs +++ b/ghc/utils/ghc-pkg/Main.hs @@ -131,14 +131,15 @@ ourCopyright = "GHC package manager version " ++ version ++ "\n" usageHeader :: String -> String usageHeader prog = substProg prog $ "Usage:\n" ++ - " $p {--help | -?}\n" ++ - " Produce this usage message.\n" ++ - "\n" ++ - " $p register {filename | -} [--user | --global]\n" ++ + " $p register {filename | -}\n" ++ " Register the package using the specified installed package\n" ++ " description. The syntax for the latter is given in the $p\n" ++ " documentation.\n" ++ "\n" ++ + " $p update {filename | -}\n" ++ + " Register the package, overwriting any other package with the\n" ++ + " same name.\n" ++ + "\n" ++ " $p unregister {pkg-id}\n" ++ " Unregister the specified package.\n" ++ "\n" ++ @@ -148,7 +149,7 @@ usageHeader prog = substProg prog $ " $p hide {pkg-id}\n" ++ " Hide the specified package.\n" ++ "\n" ++ - " $p list [--global | --user]\n" ++ + " $p list\n" ++ " List all registered packages, both global and user (unless either\n" ++ " --global or --user is specified), and both hidden and exposed.\n" ++ "\n" ++ @@ -159,7 +160,9 @@ usageHeader prog = substProg prog $ "\n" ++ " $p field {pkg-id} {field}\n" ++ " Extract the specified field of the package description for the\n" ++ - " specified package.\n" + " specified package.\n" ++ + "\n" ++ + " The following optional flags are also accepted:\n" substProg :: String -> String -> String substProg _ [] = []