X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=Main.hs;h=46eb3e2ad4867ef7361cb8c681a7ac2ac10d7f41;hb=a4b849476ee3a204ea91dee8f3fd235b0b33a10a;hp=2ea8ef03d2d0091558e9e786f7b5869685878998;hpb=547fd6221931c8025085db91f7424db850156129;p=Rakka.git diff --git a/Main.hs b/Main.hs index 2ea8ef0..46eb3e2 100644 --- a/Main.hs +++ b/Main.hs @@ -87,11 +87,11 @@ options = [ Option ['p'] ["port"] , Option [] ["disable-stderr-log"] (NoArg OptDisableStderrLog) - ("Disable logging to stderr.") + "Disable logging to stderr." , Option [] ["rebuild-index"] (NoArg OptRebuildIndex) - ("Rebuild the index database.") + "Rebuild the index database." , Option ['h'] ["help"] (NoArg OptHelp) @@ -111,7 +111,7 @@ main = withOpenSSL $ withSubversion $ do (opts, nonOpts, errors) <- return . getOpt Permute options =<< getArgs - when (not $ null errors) + unless (null errors) $ do mapM_ putStr errors exitWith $ ExitFailure 1 @@ -119,7 +119,7 @@ main = withOpenSSL $ $ do printUsage exitWith ExitSuccess - when (not $ null nonOpts) + unless (null nonOpts) $ do printUsage exitWith $ ExitFailure 1