Skip to content

feat(cli): accept deno audit fix as alias for deno audit --fix - #34273

Merged
bartlomieju merged 1 commit into
mainfrom
feat/audit-fix-positional
May 21, 2026
Merged

bartlomieju merged 1 commit into
mainfrom
feat/audit-fix-positional

Conversation

@bartlomieju

Copy link
Copy Markdown
Member

Users naturally reach for deno audit fix (mirroring npm audit fix) before
discovering the --fix flag. This accepts fix as a positional argument to
the audit subcommand and folds it into the same fix boolean on
AuditFlags, so both invocations behave identically. The positional is
restricted to the literal fix, so unrelated arguments still error.

@bartlomieju
bartlomieju merged commit 0b6cd36 into main May 21, 2026
136 checks passed
@bartlomieju
bartlomieju deleted the feat/audit-fix-positional branch May 21, 2026 07:14
littledivy pushed a commit to crowlKats/deno that referenced this pull request Jun 10, 2026
…enoland#34273)

Users naturally reach for `deno audit fix` (mirroring `npm audit fix`)
before discovering the `--fix` flag. This accepts `fix` as a positional
argument to the `audit` subcommand and folds it into the same `fix` boolean on
`AuditFlags`, so both invocations behave identically. The positional is
restricted to the literal `fix`, so unrelated arguments still error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant