clckwrks-0.22.4: A secure, reliable content management system (CMS) and blogging platform

Safe HaskellNone

Clckwrks.GetOpts

Synopsis

Documentation

data Flag Source

command-line Flags

isHelp :: Flag -> BoolSource

Flag selectors

isVersion :: Flag -> BoolSource

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] -> StringSource

A simple usage message listing all flags possible.