Update ghc-cabal command line usage text.
authorEdward Z. Yang <ezyang@cs.stanford.edu>
Wed, 21 Dec 2016 06:09:16 +0000 (22:09 -0800)
committerEdward Z. Yang <ezyang@cs.stanford.edu>
Wed, 21 Dec 2016 16:56:44 +0000 (08:56 -0800)
Summary:
Old usage text was horribly out-of-date.  Now updated!

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Test Plan: none

Reviewers: bgamari, austin

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2889

utils/ghc-cabal/Main.hs

index 12699a7..608517e 100644 (file)
@@ -66,9 +66,13 @@ main = do hSetBuffering stdout LineBuffering
 
 syntax_error :: [String]
 syntax_error =
-    ["syntax: ghc-cabal configure <configure-args> -- <distdir> <directory>...",
-     "        ghc-cabal install <ghc-pkg> <directory> <distdir> <destdir> <prefix> <args>...",
-     "        ghc-cabal hscolour <distdir> <directory> <args>..."]
+    ["syntax: ghc-cabal configure <directory> <distdir> <dll0modules> <args>...",
+     "        ghc-cabal copy <directory> <distdir> <strip> <destdir> <prefix> <libdir> <docdir> <libways> <args>...",
+     "        ghc-cabal register <directory> <distdir> <ghc> <ghcpkg> <topdir> <destdir> <prefix> <libdir> <docdir> <relocatable> <args>...",
+     "        ghc-cabal hscolour <directory> <distdir> <args>...",
+     "        ghc-cabal check <directory>",
+     "        ghc-cabal sdist <directory> <distdir>",
+     "        ghc-cabal --version"]
 
 die :: [String] -> IO a
 die errs = do mapM_ (hPutStrLn stderr) errs