From 65d841bc1bd8c63a154bbc674d447dcabdd34400 Mon Sep 17 00:00:00 2001 From: aarne Date: Sun, 5 Mar 2006 20:30:37 +0000 Subject: make help and treebank options --- src/GF.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/GF.hs') diff --git a/src/GF.hs b/src/GF.hs index a4bf22c59..7d093e1df 100644 --- a/src/GF.hs +++ b/src/GF.hs @@ -48,7 +48,7 @@ main = do doGF os fs = case 0 of - _ | opt getHelp -> do + _ | opt getHelp || any opt (map iOpt ["h", "-help", "-h"])-> do putStrLnFlush $ encodeUTF8 helpMsg _ | opt forJava -> do @@ -99,10 +99,11 @@ helpMsg = unlines [ " -edit start the editor GUI (same as command 'jgf')", " -ex first compile .gfe files as needed, then .gf files", " -examples batch-compile .gfe files by parsing examples", - " -help show this message", + " -treebank use a treebank, instead of a grammar, as parser", " -make batch-compile files", " -noemit do not emit code when compiling", " -v be verbose when compiling", + " -help show this message", "Also all flags for import (i) are interpreted; see 'help import'.", "An example combination of flags is", " gf -batch -nocpu -s", -- cgit v1.2.3