X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Rakka.git;a=blobdiff_plain;f=Main.hs;h=46eb3e2ad4867ef7361cb8c681a7ac2ac10d7f41;hp=2ea8ef03d2d0091558e9e786f7b5869685878998;hb=43113f26d3e61c96d896724c5509abe67b6a99e7;hpb=9c2fc861f3ed609ebb4d0f135aea38ca055bbea8 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