From aea507013bcf66cfc33d6311287ad3aeadfd8b38 Mon Sep 17 00:00:00 2001 From: Torsten Schmits Date: Tue, 26 Mar 2024 19:35:46 +0100 Subject: [PATCH] switch precedence of command options so later args override earlier ones --- packages/host/lib/Ribosome/Host/Handler/Command.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/host/lib/Ribosome/Host/Handler/Command.hs b/packages/host/lib/Ribosome/Host/Handler/Command.hs index 779bab2..e4fbad3 100644 --- a/packages/host/lib/Ribosome/Host/Handler/Command.hs +++ b/packages/host/lib/Ribosome/Host/Handler/Command.hs @@ -234,7 +234,7 @@ instance ( (opts, args) where opts = - paramOpt @special @state @a <> optsAfter + optsAfter <> paramOpt @special @state @a args = maybeToList (paramArg @special @state @a) <> argsAfter (optsAfter, argsAfter) =