getopt-generics 0.11 → 0.11.0.1
raw patch · 2 files changed
+1/−51 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- README.md +0/−49
- getopt-generics.cabal +1/−2
− README.md
@@ -1,49 +0,0 @@-# getopt-generics--## Status--This library is experimental.--## Usage--`getopt-generics` tries to make it very simple to create command line-interfaces. Here's an example:--<!--- ### Start "docs/Simple.hs" "module Simple where\n\n" (MarkDown Haskell) ### -->--``` haskell-import WithCli--main :: IO ()-main = withCli run--run :: String -> Int -> Bool -> IO ()-run s i b = print (s, i, b)-```--<!--- ### End ### -->--This is how the program behaves in a shell:--<!--- ### Start "docs/Simple.shell-protocol" "" (MarkDown Shell) ### -->--``` shell-$ program foo 42 true-("foo",42,True)-$ program --help-program [OPTIONS] STRING INTEGER BOOL- -h --help show help and exit-$ program foo 42 bar-cannot parse as BOOL: bar-# exit-code 1-$ program-missing argument of type STRING-missing argument of type INTEGER-missing argument of type BOOL-# exit-code 1-$ program foo 42 yes bar-unknown argument: bar-# exit-code 1-```--<!--- ### End ### -->
getopt-generics.cabal view
@@ -3,7 +3,7 @@ -- see: https://github.com/sol/hpack name: getopt-generics-version: 0.11+version: 0.11.0.1 synopsis: Create command line interfaces with ease description: Create command line interfaces with ease category: Console, System@@ -36,7 +36,6 @@ docs/Test03.shell-protocol docs/Test04.hs docs/Test04.shell-protocol- README.md source-repository head type: git