, 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)
withSubversion $
do (opts, nonOpts, errors) <- return . getOpt Permute options =<< getArgs
- when (not $ null errors)
+ unless (null errors)
$ do mapM_ putStr errors
exitWith $ ExitFailure 1
$ do printUsage
exitWith ExitSuccess
- when (not $ null nonOpts)
+ unless (null nonOpts)
$ do printUsage
exitWith $ ExitFailure 1