Skip to content

@effect/cli@0.73.1

Choose a tag to compare

@github-actions github-actions released this 22 Jan 20:59
3134f12

Patch Changes

  • #5983 0d1a44f Thanks @cevr! - Allow options to appear after positional arguments

    Previously, @effect/cli required all options to appear before positional arguments. For example, cmd --force staging worked but cmd staging --force failed 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