cmdargs 0.6.6 → 0.6.7
raw patch · 3 files changed
+6/−6 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- System/Console/CmdArgs/Implicit.hs +2/−2
- System/Console/CmdArgs/Implicit/Type.hs +2/−2
- cmdargs.cabal +2/−2
System/Console/CmdArgs/Implicit.hs view
@@ -143,8 +143,8 @@ -- it will set the verbosity (see 'setVerbosity'). cmdArgsApply :: CmdArgs a -> IO a cmdArgsApply CmdArgs{..}- | Just x <- cmdArgsHelp = do putStrLn x; exitSuccess- | Just x <- cmdArgsVersion = do putStrLn x; exitSuccess+ | Just x <- cmdArgsHelp = do putStr x; exitSuccess+ | Just x <- cmdArgsVersion = do putStr x; exitSuccess | otherwise = do maybe (return ()) setVerbosity cmdArgsVerbosity return cmdArgsValue
System/Console/CmdArgs/Implicit/Type.hs view
@@ -17,8 +17,8 @@ -- @--version@, @--quiet@ and @--verbose@. data CmdArgs a = CmdArgs {cmdArgsValue :: a -- ^ The underlying value being wrapped.- ,cmdArgsHelp :: Maybe String -- ^ @Just@ if @--help@ is given, then gives the help message for display.- ,cmdArgsVersion :: Maybe String -- ^ @Just@ if @--version@ is given, then gives the version message for display.+ ,cmdArgsHelp :: Maybe String -- ^ @Just@ if @--help@ is given, then gives the help message for display, including a trailing newline.+ ,cmdArgsVersion :: Maybe String -- ^ @Just@ if @--version@ is given, then gives the version message for display, including a trailing newline. ,cmdArgsVerbosity :: Maybe Verbosity -- ^ @Just@ if @--quiet@ or @--verbose@ is given, then gives the verbosity to use. ,cmdArgsPrivate :: CmdArgsPrivate -- ^ Private: Only exported due to Haddock limitations. }
cmdargs.cabal view
@@ -1,13 +1,13 @@ cabal-version: >= 1.6 build-type: Simple name: cmdargs-version: 0.6.6+version: 0.6.7 license: BSD3 license-file: LICENSE category: Console author: Neil Mitchell <ndmitchell@gmail.com> maintainer: Neil Mitchell <ndmitchell@gmail.com>-copyright: Neil Mitchell 2009-2010+copyright: Neil Mitchell 2009-2011 synopsis: Command line argument processing description: This library provides an easy way to define command line parsers. Most users