aboutsummaryrefslogtreecommitdiff
path: root/src/pandoc.hs
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-02-26 16:47:36 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-02-26 16:47:36 +0000
commit75c7800d90446f24bd6819360b7d6967db35d9b7 (patch)
tree0969e9f6c96217c87ad3684d65556510ff025dbb /src/pandoc.hs
parent24cb44ad6c1634e7a5521942be43cebccc65d1eb (diff)
downloadpandoc-75c7800d90446f24bd6819360b7d6967db35d9b7.tar.gz
Don't return an error status on --help or --version.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1551 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'src/pandoc.hs')
-rw-r--r--src/pandoc.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pandoc.hs b/src/pandoc.hs
index 12605c401..bc0948709 100644
--- a/src/pandoc.hs
+++ b/src/pandoc.hs
@@ -412,17 +412,17 @@ options =
(NoArg
(\_ -> do
prg <- getProgName
- hPutStrLn stderr (prg ++ " " ++ pandocVersion ++ compileInfo ++
+ hPutStrLn stdout (prg ++ " " ++ pandocVersion ++ compileInfo ++
copyrightMessage)
- exitWith $ ExitFailure 4))
+ exitWith ExitSuccess ))
"" -- "Print version"
, Option "h" ["help"]
(NoArg
(\_ -> do
prg <- getProgName
- hPutStr stderr (usageMessage prg options)
- exitWith $ ExitFailure 2))
+ hPutStr stdout (usageMessage prg options)
+ exitWith ExitSuccess ))
"" -- "Show help"
]