Commit 19e0cf0d authored by Curtis Gagliardi's avatar Curtis Gagliardi

Add delete-source to cabal sandbox help.

parent 1d1ecd61
......@@ -1633,7 +1633,8 @@ sandboxCommand = CommandUI {
commandUsage = \pname ->
"Usage: " ++ pname ++ " sandbox init\n"
++ " or: " ++ pname ++ " sandbox delete\n"
++ " or: " ++ pname ++ " sandbox add-source [PATHS]\n\n"
++ " or: " ++ pname ++ " sandbox add-source [PATHS]\n"
++ " or: " ++ pname ++ " sandbox delete-source [PATHS]\n\n"
++ " or: " ++ pname ++ " sandbox hc-pkg -- [ARGS]\n"
++ " or: " ++ pname ++ " sandbox list-sources\n\n"
++ "Flags for sandbox:",
......
......@@ -1052,13 +1052,14 @@ sandboxAction sandboxFlags extraArgs globalFlags = do
sandboxHcPkg verbosity sandboxFlags globalFlags extra
["buildopts"] -> die "Not implemented!"
-- Hidden commands.
("delete-source":extra) -> do
when (noExtraArgs extra) $
die "The 'sandbox delete-source' command expects \
\at least one argument"
sandboxDeleteSource verbosity extra sandboxFlags globalFlags
["list-sources"] -> sandboxListSources verbosity sandboxFlags globalFlags
-- Hidden commands.
["dump-pkgenv"] -> dumpPackageEnvironment verbosity sandboxFlags globalFlags
-- Error handling.
......
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