bumper 0.5.0.3 → 0.5.1
raw patch · 2 files changed
+8/−2 lines, 2 files
Files
- bumper.cabal +1/−1
- src/Config.hs +7/−1
bumper.cabal view
@@ -1,5 +1,5 @@ Name: bumper-Version: 0.5.0.3+Version: 0.5.1 Synopsis: Automatically bump package versions, also transitively. Description: Automatically bump package versions, also transitively. Author: Silk
src/Config.hs view
@@ -4,6 +4,7 @@ #-} module Config where +import Control.Monad import Data.Label import Data.List.Split import Data.Version@@ -70,7 +71,12 @@ getConfig :: IO Config getConfig = do args <- getArgs- (opts, _) <- processArgs defaultConfig options header args+ opts <- processArgs defaultConfig options header args+ uncurry checkConfig opts++checkConfig :: Config -> [String] -> IO Config+checkConfig opts rest =+ do when (not . null $ rest) (error "Trailing options. Did you forget a flag?") return opts processArgs :: a -> [OptDescr (a -> a)] -> String -> [String] -> IO (a, [String])