You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
joepjoosten
changed the title
Effect cli Options.repeated order of arguments matters
@effect/cli Options.repeated order of arguments matters
Oct 5, 2024
What version of Effect is running?
effect 3.8.4, @effect/cli 0.45.2
What steps can reproduce the bug?
Then running it with the following options:
--third 3 --second 2 --first 1 --first 4
, or--first 1 --third 3 --second 2 --first 4
Wont work.
What is the expected behavior?
The order should not matter for the given options. (i know about sub commands, and there options / arguments must follow the sub command)
I expect it to work independent of the order, like non repeated options.
What do you see instead?
Error: {"_tag":"InvalidValue","error":{"_tag":"Paragraph","value":{"_tag":"Text","value":"Received unknown argument: '--first'"}}}
Additional information
No response
The text was updated successfully, but these errors were encountered: