Patch Changes
-
#5983
0d1a44fThanks @cevr! - Allow options to appear after positional argumentsPreviously,
@effect/clirequired all options to appear before positional arguments. For example,cmd --force stagingworked butcmd staging --forcefailed with "Received unknown argument".This change updates the option parsing logic to scan through all arguments to find options, regardless of their position relative to positional arguments. This aligns with the behavior of most CLI tools (git, npm, docker, etc.) which allow options anywhere in the command.
Before:
myapp deploy --force staging # worked myapp deploy staging --force # failed: "Received unknown argument: '--force'"
After:
myapp deploy --force staging # works myapp deploy staging --force # works
-
Updated dependencies [
7e925ea,118e7a4,d7e75d6,4860d1e]:- effect@3.19.15
- @effect/platform@0.94.2