mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-20 00:22:51 -06:00
added syntax and examples fields to command help
This commit is contained in:
@@ -61,8 +61,8 @@ interpret env trees0 comm = case lookCommand co comms of
|
||||
comms = commands env
|
||||
checkOpts info =
|
||||
case
|
||||
[o | OOpt o <- opts, notElem o ("tr" : options info)] ++
|
||||
[o | OFlag o _ <- opts, notElem o (flags info)]
|
||||
[o | OOpt o <- opts, notElem o ("tr" : map fst (options info))] ++
|
||||
[o | OFlag o _ <- opts, notElem o (map fst (flags info))]
|
||||
of
|
||||
[] -> return ()
|
||||
[o] -> putStrLn $ "option not interpreted: " ++ o
|
||||
|
||||
Reference in New Issue
Block a user