1
0
forked from GitHub/gf-core

describe cc,e,ph,q and i in Commands also. Allows word completion

This commit is contained in:
kr.angelov
2008-06-05 11:50:24 +00:00
parent a097dc5e85
commit b8854ea2f4

View File

@@ -63,6 +63,10 @@ commandHelp full (co,info) = unlines $ [
-- this list must be kept sorted by the command name!
allCommands :: PGF -> Map.Map String CommandInfo
allCommands pgf = Map.fromAscList [
("cc", emptyCommandInfo),
("e", emptyCommandInfo),
("ph", emptyCommandInfo),
("q", emptyCommandInfo),
("gr", emptyCommandInfo {
longname = "generate_random",
synopsis = "generates a list of random trees, by default one tree",
@@ -91,6 +95,9 @@ allCommands pgf = Map.fromAscList [
_ -> "command not found"
_ -> commandHelpAll pgf opts)
}),
("i", emptyCommandInfo {
options = ["prob", "retain", "gfo", "src", "no-cpu", "cpu", "quiet", "verbose"]
}),
("l", emptyCommandInfo {
exec = \opts -> return . fromStrings . map (optLin opts),
options = ["all","record","table","term"],