clckwrks-0.26.3: A secure, reliable content management system (CMS) and blogging platform
Safe HaskellNone
LanguageHaskell2010

Clckwrks.GetOpts

Synopsis

Documentation

data Flag Source #

command-line Flags

isHelp :: Flag -> Bool Source #

Flag selectors

isVersion :: Flag -> Bool Source #

Flag selectors

clckwrksOpts :: ClckwrksConfig -> [OptDescr Flag] Source #

Command line options.

parseArgs :: [OptDescr Flag] -> [String] -> IO (ClckwrksConfig -> IO ClckwrksConfig) Source #

Parse the command line arguments into a list of flags. Exits with usage message, in case of failure.

helpMessage :: [OptDescr Flag] -> String Source #

A simple usage message listing all flags possible.