From 0810dc189c4cad7c210472878d4b0e9b9cf128c0 Mon Sep 17 00:00:00 2001 From: Saravanan M Date: Mon, 26 Feb 2024 20:11:24 +0530 Subject: [PATCH] Fixing parsing of execArgs flag --- bin/src/Flags.purs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/src/Flags.purs b/bin/src/Flags.purs index 1fad6f760..5cc2d558d 100644 --- a/bin/src/Flags.purs +++ b/bin/src/Flags.purs @@ -191,9 +191,7 @@ pursArgs = ) execArgs :: Parser (Maybe (Array String)) -execArgs = - OT.optional - $ Array.fromFoldable +execArgs = (\s -> if List.null s then Nothing else (Just $ Array.fromFoldable s)) <$> O.many ( O.strArgument ( O.help "Arguments to pass to the running script"