@@ -18,7 +18,8 @@ data Opts = Opts { really :: Bool
1818 , output :: FilePath
1919 }
2020
21−showUsage = do putStrLn "Usage: idris-codegen-javascript --yes-really <ibc-files> [-o <output-file>]"
21+showUsage = do putStrLn "A code generator which is intended to be called by the compiler, not by a user.\n"
22+ putStrLn "Usage: idris-codegen-javascript --yes-really <ibc-files> [-o <output-file>]"
2223 exitWith ExitSuccess
2324
2425getOpts :: IO Opts
@@ -42,6 +43,7 @@ main = do opts <- getOpts
4243 if (null (inputs opts))
4344 then showUsage
4445 else if (not $ really opts)
45− then do putStrLn "This is not what you may expect it is."
46− showUsage
46+ then do putStrLn "This code generator is intended to be called by the Idris compiler. \
47+ \Please pass Idris the '--codegen' flag to choose a backend."
48+ exitWith ExitSuccess
4749 else runMain (jsMain opts)