summaryrefslogtreecommitdiff
path: root/src/GF.hs
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2006-03-05 20:30:37 +0000
committeraarne <aarne@cs.chalmers.se>2006-03-05 20:30:37 +0000
commit65d841bc1bd8c63a154bbc674d447dcabdd34400 (patch)
tree893c25c44ca4b13f8abb09f8fbef8643ce633b82 /src/GF.hs
parent2657c51e040964d9704f5c69945685ebd546eb6a (diff)
make help and treebank options
Diffstat (limited to 'src/GF.hs')
-rw-r--r--src/GF.hs5
1 files changed, 3 insertions, 2 deletions
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",