Skip to content

Commit

Permalink
Apply gt to all arguments when piped
Browse files Browse the repository at this point in the history
  • Loading branch information
inariksit committed Mar 15, 2024
1 parent 7e70750 commit 2f31bba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/compiler/GF/Command/Commands.hs
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ pgfCommands = Map.fromList [
exec = getEnv $ \ opts arg (Env pgf mos) -> do
let pgfr = optRestricted opts pgf
let dp = valIntOpts "depth" 4 opts
let ts = case mexp (toExprs arg) of
Just ex -> generateFromDepth pgfr ex (Just dp)
Nothing -> generateAllDepth pgfr (optType pgf opts) (Just dp)
let ts = case toExprs arg of
[] -> generateAllDepth pgfr (optType pgf opts) (Just dp)
es -> concat [generateFromDepth pgfr e (Just dp) | e <- es]
returnFromExprs $ take (optNumInf opts) ts
}),
("i", emptyCommandInfo {
Expand Down

0 comments on commit 2f31bba

Please sign in to comment.