Commit f2a5929b authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files

Make 'delete-source' point the user to 'sandbox hc-pkg'.

See #1447.
parent c9e10506
......@@ -429,6 +429,10 @@ sandboxDeleteSource verbosity buildTreeRefs _sandboxFlags globalFlags = do
withRemoveTimestamps sandboxDir $ do
Index.removeBuildTreeRefs verbosity indexFile buildTreeRefs
notice verbosity $ "Note: 'sandbox delete-source' only deletes the" ++
"add-source record, but does not unregister the package " ++
"from the package DB.\n\nUse 'sandbox hc-pkg -- unregister' to do that."
-- | Entry point for the 'cabal sandbox list-sources' command.
sandboxListSources :: Verbosity -> SandboxFlags -> GlobalFlags
-> IO ()
......
......@@ -1397,7 +1397,7 @@ sandboxCommand = CommandUI {
"Usage: " ++ pname ++ " sandbox init\n"
++ " or: " ++ pname ++ " sandbox delete\n"
++ " or: " ++ pname ++ " sandbox add-source [PATHS]\n\n"
++ " or: " ++ pname ++ " sandbox hc-pkg [ARGS]\n"
++ " or: " ++ pname ++ " sandbox hc-pkg -- [ARGS]\n"
++ " or: " ++ pname ++ " sandbox list-sources\n\n"
++ "Flags for sandbox:",
......
Supports Markdown
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