mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 03:32:51 -06:00
Apply gt to all arguments when piped
This commit is contained in:
@@ -218,9 +218,9 @@ pgfCommands = Map.fromList [
|
|||||||
exec = getEnv $ \ opts arg (Env pgf mos) -> do
|
exec = getEnv $ \ opts arg (Env pgf mos) -> do
|
||||||
let pgfr = optRestricted opts pgf
|
let pgfr = optRestricted opts pgf
|
||||||
let dp = valIntOpts "depth" 4 opts
|
let dp = valIntOpts "depth" 4 opts
|
||||||
let ts = case mexp (toExprs arg) of
|
let ts = case toExprs arg of
|
||||||
Just ex -> generateFromDepth pgfr ex (Just dp)
|
[] -> generateAllDepth pgfr (optType pgf opts) (Just dp)
|
||||||
Nothing -> generateAllDepth pgfr (optType pgf opts) (Just dp)
|
es -> concat [generateFromDepth pgfr e (Just dp) | e <- es]
|
||||||
returnFromExprs $ take (optNumInf opts) ts
|
returnFromExprs $ take (optNumInf opts) ts
|
||||||
}),
|
}),
|
||||||
("i", emptyCommandInfo {
|
("i", emptyCommandInfo {
|
||||||
|
|||||||
Reference in New Issue
Block a user