From ff1a8114c88d48130556fdde0ea1cb47e74fab41 Mon Sep 17 00:00:00 2001 From: Mike Lin Date: Wed, 10 Jan 2024 11:47:12 -1000 Subject: [PATCH] enable CLI input of Array[Directory] --- WDL/CLI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WDL/CLI.py b/WDL/CLI.py index c1df19e2..7233ae85 100644 --- a/WDL/CLI.py +++ b/WDL/CLI.py @@ -1254,7 +1254,7 @@ def runner_input_value(s_value, ty, downloadable, root): if isinstance(ty, Type.Float): return Value.Float(float(s_value)) if isinstance(ty, Type.Array) and isinstance( - ty.item_type, (Type.String, Type.File, Type.Int, Type.Float) + ty.item_type, (Type.String, Type.File, Type.Directory, Type.Int, Type.Float) ): # just produce a length-1 array, to be combined ex post facto return Value.Array(