[project @ 2000-07-25 12:24:14 by michaelw]
authormichaelw <unknown>
Tue, 25 Jul 2000 12:24:14 +0000 (12:24 +0000)
committermichaelw <unknown>
Tue, 25 Jul 2000 12:24:14 +0000 (12:24 +0000)
giving the version number when asked for is NOT an error, therefore
output now goes to stdout (cf. Coding Standards)

ghc/driver/Main.hs

index b40d18b..e2f7fa1 100644 (file)
@@ -1750,10 +1750,10 @@ opts =
   
 
       ------- version ----------------------------------------------------
-  ,  ( "-version"       , NoArg (do hPutStrLn stderr (cProjectName
+  ,  ( "-version"       , NoArg (do hPutStrLn stdout (cProjectName
                                      ++ ", version " ++ version_str)
                                     exitWith ExitSuccess))
-  ,  ( "-numeric-version", NoArg (do hPutStrLn stderr version_str
+  ,  ( "-numeric-version", NoArg (do hPutStrLn stdout version_str
                                     exitWith ExitSuccess))
 
       ------- verbosity ----------------------------------------------------