Skip to content

Commit f3f1d1d

Browse files
committed
fix: remove -w short flag from --workspace to resolve collision with --web
The -w short flag was registered on both the global --workspace option and the command-level --web option. Since Cliffy resolves global options first, -w always mapped to --workspace, making --web unusable (both as -w and --web due to prefix matching). Remove the -w alias from --workspace so that -w correctly maps to --web on commands that support it. Users can still use --workspace in full. Fixes #174
1 parent 91866c0 commit f3f1d1d

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/authentication.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ the CLI supports multiple authentication methods with the following precedence:
55
1. `--api-key` flag (explicit key for single command)
66
2. `LINEAR_API_KEY` environment variable
77
3. `api_key` in project `.linear.toml` config
8-
4. `--workspace` / `-w` flag → stored credentials lookup
8+
4. `--workspace` flag → stored credentials lookup
99
5. project's `workspace` config → stored credentials lookup
1010
6. default workspace from stored credentials
1111

@@ -61,9 +61,9 @@ the `*` indicates the default workspace.
6161
# set a new default
6262
linear auth default side-project
6363

64-
# or use -w flag for a single command
65-
linear -w side-project issue list
66-
linear -w acme issue create --title "Bug fix"
64+
# or use --workspace flag for a single command
65+
linear --workspace side-project issue list
66+
linear --workspace acme issue create --title "Bug fix"
6767
```
6868

6969
### credentials file format

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Environment Variables:
3131
LINEAR_DEBUG=1 Show full error details including stack traces`,
3232
)
3333
.globalOption(
34-
"-w, --workspace <slug:string>",
34+
"--workspace <slug:string>",
3535
"Target workspace (uses credentials)",
3636
)
3737
.globalAction((options) => {

0 commit comments

Comments
 (0)