summaryrefslogtreecommitdiff
path: root/src/GF/API.hs
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2007-03-14 12:11:18 +0000
committeraarne <aarne@cs.chalmers.se>2007-03-14 12:11:18 +0000
commitf7ce8940fa0d53718eb30bfc7d0ef9320bafc673 (patch)
treea018f006c071e2782baa2e4e86fc28dc57901d49 /src/GF/API.hs
parent98fcad148e61d5a284d0fe1b095f90eab368d28f (diff)
ma -status; sep lines for l -all
Diffstat (limited to 'src/GF/API.hs')
-rw-r--r--src/GF/API.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/GF/API.hs b/src/GF/API.hs
index f7bd5fc9c..762fa372f 100644
--- a/src/GF/API.hs
+++ b/src/GF/API.hs
@@ -241,11 +241,11 @@ optLinearizeTree opts0 gr t = case getOptVal opts transferFun of
lin mk
| oElem showRecord opts = liftM prt . linearizeNoMark g c
| oElem tableLin opts = liftM (unlines . map untok . prLinTable True) .
- allLinTables g c
+ allLinTables True g c
| oElem showFields opts = liftM (unlines . map untok) .
allLinBranchFields g c
| oElem showAll opts = liftM (unlines . map untok . prLinTable False) .
- allLinTables g c
+ allLinTables False g c
| otherwise = return . unlines . map untok . optIntOrOne . linTree2strings mk g c
g = grammar gr
c = cncId gr
@@ -306,7 +306,8 @@ optParseArgErrMsg opts gr s = do
-- | analyses word by word
morphoAnalyse :: Options -> GFGrammar -> String -> String
-morphoAnalyse opts gr
+morphoAnalyse opts gr
+ | oElem (iOpt "status") opts = morphoTextStatus mo
| oElem beShort opts = morphoTextShort mo
| otherwise = morphoText mo
where