mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
remove the -output-file option
This commit is contained in:
@@ -147,7 +147,6 @@ data Flags = Flags {
|
|||||||
optLexicalCats :: Set String,
|
optLexicalCats :: Set String,
|
||||||
optLiteralCats :: Set Ident,
|
optLiteralCats :: Set Ident,
|
||||||
optGFODir :: Maybe FilePath,
|
optGFODir :: Maybe FilePath,
|
||||||
optOutputFile :: Maybe FilePath,
|
|
||||||
optOutputDir :: Maybe FilePath,
|
optOutputDir :: Maybe FilePath,
|
||||||
optGFLibPath :: Maybe FilePath,
|
optGFLibPath :: Maybe FilePath,
|
||||||
optRecomp :: Recomp,
|
optRecomp :: Recomp,
|
||||||
@@ -244,7 +243,6 @@ defaultFlags = Flags {
|
|||||||
optLiteralCats = Set.fromList [cString,cInt,cFloat,cVar],
|
optLiteralCats = Set.fromList [cString,cInt,cFloat,cVar],
|
||||||
optLexicalCats = Set.empty,
|
optLexicalCats = Set.empty,
|
||||||
optGFODir = Nothing,
|
optGFODir = Nothing,
|
||||||
optOutputFile = Nothing,
|
|
||||||
optOutputDir = Nothing,
|
optOutputDir = Nothing,
|
||||||
optGFLibPath = Nothing,
|
optGFLibPath = Nothing,
|
||||||
optRecomp = RecompIfNewer,
|
optRecomp = RecompIfNewer,
|
||||||
@@ -310,8 +308,6 @@ optDescr =
|
|||||||
"Treat CAT as a lexical category.",
|
"Treat CAT as a lexical category.",
|
||||||
Option [] ["literal"] (ReqArg literalCat "CAT[,CAT[...]]")
|
Option [] ["literal"] (ReqArg literalCat "CAT[,CAT[...]]")
|
||||||
"Treat CAT as a literal category.",
|
"Treat CAT as a literal category.",
|
||||||
Option ['o'] ["output-file"] (ReqArg outFile "FILE")
|
|
||||||
"Save output in FILE (default is out.X, where X depends on output format.",
|
|
||||||
Option ['D'] ["output-dir"] (ReqArg outDir "DIR")
|
Option ['D'] ["output-dir"] (ReqArg outDir "DIR")
|
||||||
"Save output files (other than .gfo files) in DIR.",
|
"Save output files (other than .gfo files) in DIR.",
|
||||||
Option [] ["gf-lib-path"] (ReqArg gfLibPath "DIR")
|
Option [] ["gf-lib-path"] (ReqArg gfLibPath "DIR")
|
||||||
@@ -381,7 +377,6 @@ optDescr =
|
|||||||
++ " Known: " ++ show (map fst haskellOptionNames)
|
++ " Known: " ++ show (map fst haskellOptionNames)
|
||||||
literalCat x = set $ \o -> o { optLiteralCats = foldr Set.insert (optLiteralCats o) ((map (identC . BS.pack) . splitBy (==',')) x) }
|
literalCat x = set $ \o -> o { optLiteralCats = foldr Set.insert (optLiteralCats o) ((map (identC . BS.pack) . splitBy (==',')) x) }
|
||||||
lexicalCat x = set $ \o -> o { optLexicalCats = foldr Set.insert (optLexicalCats o) (splitBy (==',') x) }
|
lexicalCat x = set $ \o -> o { optLexicalCats = foldr Set.insert (optLexicalCats o) (splitBy (==',') x) }
|
||||||
outFile x = set $ \o -> o { optOutputFile = Just x }
|
|
||||||
outDir x = set $ \o -> o { optOutputDir = Just x }
|
outDir x = set $ \o -> o { optOutputDir = Just x }
|
||||||
gfLibPath x = set $ \o -> o { optGFLibPath = Just x }
|
gfLibPath x = set $ \o -> o { optGFLibPath = Just x }
|
||||||
recomp x = set $ \o -> o { optRecomp = x }
|
recomp x = set $ \o -> o { optRecomp = x }
|
||||||
|
|||||||
Reference in New Issue
Block a user