Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
73fabb89
Commit
73fabb89
authored
Jan 21, 2005
by
simonmar
Browse files
[project @ 2005-01-21 11:04:39 by simonmar]
Update the --help text
parent
e9012cf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/utils/ghc-pkg/Main.hs
View file @
73fabb89
...
...
@@ -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
_
[]
=
[]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment