Commit 1ae32688 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Print the right usage message

The logic for printing the ghc and ghci usage messages was inverted.
However, the ghci case will never actually happen with the current code,
as we print a usage message when cli_mode == ShowUsage and choose the
ghci usage message if cli_mode == DoInteractive. This should be fixed
as part of a larger options handling overhaul.
parent 59fbf57f
......@@ -444,8 +444,8 @@ showVersion = do
showGhcUsage dflags cli_mode = do
let usage_path
| DoInteractive <- cli_mode = ghcUsagePath dflags
| otherwise = ghciUsagePath dflags
| DoInteractive <- cli_mode = ghciUsagePath dflags
| otherwise = ghcUsagePath dflags
usage <- readFile usage_path
dump usage
exitWith ExitSuccess
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