summaryrefslogtreecommitdiff
path: root/src/GF/Shell
diff options
context:
space:
mode:
authorbringert <bringert@cs.chalmers.se>2006-04-13 13:32:58 +0000
committerbringert <bringert@cs.chalmers.se>2006-04-13 13:32:58 +0000
commit293a0eb98879646643d6f3919f80cd83066a8b1b (patch)
tree62360df21f73410952c6d63ddff3e82d1549e03e /src/GF/Shell
parent97956fc13f46d747bd9d1d24b4d00c2f1c673b6c (diff)
Added -startcat flag to the pg command.
Diffstat (limited to 'src/GF/Shell')
-rw-r--r--src/GF/Shell/HelpFile.hs2
-rw-r--r--src/GF/Shell/ShellCommands.hs2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/GF/Shell/HelpFile.hs b/src/GF/Shell/HelpFile.hs
index 57692b493..8d7b72c08 100644
--- a/src/GF/Shell/HelpFile.hs
+++ b/src/GF/Shell/HelpFile.hs
@@ -133,6 +133,8 @@ txtHelpFile =
"\n flags: " ++
"\n -printer" ++
"\n -lang" ++
+ "\n -startcat -- The start category of the generated grammar." ++
+ "\n Only supported by some grammar printers." ++
"\n examples:" ++
"\n pg -printer=cf -- show the context-free skeleton" ++
"\n" ++
diff --git a/src/GF/Shell/ShellCommands.hs b/src/GF/Shell/ShellCommands.hs
index b93335416..2740101a7 100644
--- a/src/GF/Shell/ShellCommands.hs
+++ b/src/GF/Shell/ShellCommands.hs
@@ -212,7 +212,7 @@ optionsOfCommand co = case co of
CSystemCommand _ -> none
CGrep _ -> opts "v"
- CPrintGrammar -> both "utf8" "printer lang"
+ CPrintGrammar -> both "utf8" "printer lang startcat"
CPrintMultiGrammar -> both "utf8 utf8id" "printer"
CPrintSourceGrammar -> both "utf8" "printer"