console-program- Interprets the command line and a config file as commands and options




data Action o Source

run :: Action o -> [String] -> o -> IO ()Source

simple :: IO () -> Action oSource

A simple action, taking no argument.

withArgument :: Type x -> (x -> Action o) -> Action oSource

Create an action that takes an argument (non-option).

The type of argument is specified by the first parameter; these values can be obtained from the module System.Console.Argument.