packages feed

docopt 0.6.0 → 0.6.0.1

raw patch · 2 files changed

+9/−9 lines, 2 files

Files

System/Console/Docopt/OptParse.hs view
@@ -10,13 +10,11 @@ import System.Console.Docopt.Types  --- | The meat and potatoes.-buildOptParser :: String ->-                  -- ^ an obscure delimiter with which to intercalate the args list-                  OptFormat -> -                  -- ^ the expected form of the options -                  CharParser OptParserState ()-                  -- ^ a CharParser with which a ParsedArguments (k,v) list can be built+-- | The meat and potatoes. +--   @delim@ is an obscure delimiter with which to intercalate the argv list,+--   @fmt@ is the OptPattern together with metadata to tell the parser how to parse args.+--   Together, these let @buildOptParser@ build a parsec parser that can be applied to an argv. +buildOptParser :: String -> OptFormat -> CharParser OptParserState () buildOptParser delim fmt@(pattern, infomap) =       let -- Helpers
docopt.cabal view
@@ -1,6 +1,6 @@ name:                docopt-version:             0.6.0-synopsis:            A command-line interface description language and parser that will make you smile+version:             0.6.0.1+synopsis:            A command-line interface parser that will make you smile description:         Docopt parses command-line interface usage text that adheres to a familiar syntax, and from it builds a command-line argument parser that will ensure your program is invoked correctly with the available options specified in the usage text. This allows the developer to write a usage text and get an argument parser for free.  license:             MIT@@ -15,6 +15,8 @@ build-type:          Simple cabal-version:       >=1.8 +homepage:            https://github.com/docopt/docopt.hs+bug-reports:         https://github.com/docopt/docopt.hs/issues  library   exposed-modules:    System.Console.Docopt