summaryrefslogtreecommitdiff
path: root/Biz/Bild/Deps.hs
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2022-08-02 11:40:45 -0400
committerBen Sima <ben@bsima.me>2022-08-02 11:40:45 -0400
commit25c1d6a43fbfbf8896f5528e4015dadb57c02177 (patch)
tree3d2790746dae2e749a3a2d8f6dacaf63c8368eb3 /Biz/Bild/Deps.hs
parenta6c19b764ec05c9e3bbccd2135f6e553a9defcff (diff)
Fix test argument to deps
Diffstat (limited to 'Biz/Bild/Deps.hs')
-rw-r--r--Biz/Bild/Deps.hs11
1 files changed, 7 insertions, 4 deletions
diff --git a/Biz/Bild/Deps.hs b/Biz/Bild/Deps.hs
index 582899c..89c4516 100644
--- a/Biz/Bild/Deps.hs
+++ b/Biz/Bild/Deps.hs
@@ -54,12 +54,15 @@ li :: MonadIO io => IO a -> io a
li = liftIO
main :: IO ()
-main = cli
+main =
+ getArgs +> \case
+ ["test"] -> pure ()
+ args -> cli args
-cli :: IO ()
-cli = do
+cli :: [String] -> IO ()
+cli args = do
((fsj, colors), nio) <-
- getArgs +> Opts.handleParseResult <. execParserPure' Opts.defaultPrefs opts
+ pure args +> Opts.handleParseResult <. execParserPure' Opts.defaultPrefs opts
setColors colors
runReaderT (runNIO nio) fsj
where