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

System.Console.Command

Synopsis

Documentation

type Commands setting = Tree (Command setting)Source

Commands s is a tree of commands. It represents the whole set of possible commands of a program.

data Command s Source

A Command s is an action, together with some descriptive information: name (this is the textual command that invokes the action), description, and lists of applicable options and non-options. s is the type of setting.

single :: Setting s => Options s -> Commands s -> IO ()Source

Load the configuration file (if present), and run the action given on the command line.

showUsage :: Commands o -> IO ()Source

Show usage info for the program.