From 293a0eb98879646643d6f3919f80cd83066a8b1b Mon Sep 17 00:00:00 2001 From: bringert Date: Thu, 13 Apr 2006 13:32:58 +0000 Subject: Added -startcat flag to the pg command. --- src/GF/Shell/HelpFile.hs | 2 ++ src/GF/Shell/ShellCommands.hs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/GF/Shell') 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" -- cgit v1.2.3