fix a typo. It is option "-cat" not "-type"

This commit is contained in:
krasimir
2008-10-22 09:36:50 +00:00
parent 252ae4cb31
commit b303201200

View File

@@ -232,7 +232,12 @@ wordCompletion gfenv line0 prefix0 p =
pgf = multigrammar cmdEnv
cmdEnv = commandenv gfenv
optLang opts = valCIdOpts "lang" (head (languages pgf)) opts
optType opts = DTyp [] (mkCId (valStrOpts "type" (prCId $ lookStartCat pgf) opts)) []
optType opts =
let str = valStrOpts "cat" (prCId $ lookStartCat pgf) opts
in case readType str of
Just ty -> ty
Nothing -> error ("Can't parse '"++str++"' as type")
ret c [x] = return [x++[c]]
ret _ xs = return xs