-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A command-line interface parser that will make you smile -- -- 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. @package docopt @version 0.6.0.1 module System.Console.Docopt optionsWithUsage :: String -> [String] -> IO Arguments optionsWithUsageDebug :: String -> [String] -> IO Arguments optionsWithUsageFile :: FilePath -> IO Arguments optionsWithUsageFileDebug :: FilePath -> IO Arguments isPresent :: Arguments -> Option -> Bool isPresentM :: Monad m => Arguments -> Option -> m Bool notPresent :: Arguments -> Option -> Bool notPresentM :: Monad m => Arguments -> Option -> m Bool getArg :: Monad m => Arguments -> Option -> m String getFirstArg :: Monad m => Arguments -> Option -> m String getArgWithDefault :: Arguments -> String -> Option -> String getAllArgs :: Arguments -> Option -> [String] getAllArgsM :: Monad m => Arguments -> Option -> m [String] getArgCount :: Arguments -> Option -> Int command :: String -> Option argument :: String -> Option shortOption :: Char -> Option longOption :: String -> Option data Option -- | Maps each Option to all of the valued parsed from the command line (in -- order of last to first, if multiple values encountered) type Arguments = Map Option ArgValue