Skip to content

Brazenly Transgress POSIX Utility-Syntax Guideline 9! #5269

@kitlangton

Description

@kitlangton

Currently @effect/cli enforces that options must come before operands. This follows POSIX Guideline 9, but most modern CLIs ignore this for better UX.

Current (strict POSIX):

mycommand --verbose "file.txt"  # works
mycommand "file.txt" --verbose  # doesn't work

Desired (like git, npm, etc):

mycommand "file.txt" --verbose  # should work

Let users put options wherever they want! Freedom! Valhalla!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions