Skip to content

Commit

Permalink
switch precedence of command options so later args override earlier ones
Browse files Browse the repository at this point in the history
  • Loading branch information
tek committed Mar 26, 2024
1 parent eb38bbf commit aea5070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/host/lib/Ribosome/Host/Handler/Command.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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) =
Expand Down

0 comments on commit aea5070

Please sign in to comment.