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

System.Console.Action

Synopsis

Documentation

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.