Safe Haskell | None |
---|
- data Flag
- = ModifyConfig (ClckwrksConfig -> ClckwrksConfig)
- | Help
- | Version
- isHelp :: Flag -> Bool
- isVersion :: Flag -> Bool
- clckwrksOpts :: ClckwrksConfig -> [OptDescr Flag]
- parseArgs :: [OptDescr Flag] -> [String] -> IO (ClckwrksConfig -> IO ClckwrksConfig)
- helpMessage :: [OptDescr Flag] -> String
Documentation
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.