- type Commands setting = Tree (Command setting)
- data Command s = Command {
- name :: String
- applicableNonOptions :: [String]
- applicableOptions :: [OptDescr (Either String s)]
- description :: String
- action :: Action (Options s)
- single :: Setting s => Options s -> Commands s -> IO ()
- showUsage :: Commands o -> IO ()
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.
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.
Command | |
|