diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2009-02-26 16:47:36 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2009-02-26 16:47:36 +0000 |
commit | 75c7800d90446f24bd6819360b7d6967db35d9b7 (patch) | |
tree | 0969e9f6c96217c87ad3684d65556510ff025dbb /src | |
parent | 24cb44ad6c1634e7a5521942be43cebccc65d1eb (diff) | |
download | pandoc-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')
-rw-r--r-- | src/pandoc.hs | 8 |
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" ] |