diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2025-05-15 20:20:25 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-05-15 20:20:25 +0200 |
commit | 338ac0efb3d2e2a258d949268ed6b27b3ecae1a0 (patch) | |
tree | d75471dbec089455c4f0c9539c0d38299cfe66c8 /src/Parser | |
parent | be0e2017b46e981060b1f9f5fd764571ad2dc2a1 (diff) |
Extra arguments for the spawned tool
Changelog: Added `args` parameter to `spawn` command to pass extra command-line arguments to the spawend tool
Diffstat (limited to 'src/Parser')
-rw-r--r-- | src/Parser/Statement.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Parser/Statement.hs b/src/Parser/Statement.hs index d843fc8..27e7b92 100644 --- a/src/Parser/Statement.hs +++ b/src/Parser/Statement.hs @@ -424,6 +424,7 @@ testSpawn :: TestParser (Expr (TestBlock ())) testSpawn = command "spawn" $ Spawn <$> param "as" <*> (bimap fromExprParam fromExprParam <$> paramOrContext "on") + <*> (maybe [] fromExprParam <$> param "args") <*> innerBlockFun testExpect :: TestParser (Expr (TestBlock ())) |