feat(cli): add --min-dep-age alias#35914
Merged
Merged
Conversation
nathanwhit
marked this pull request as ready for review
July 9, 2026 18:45
bartlomieju
approved these changes
Jul 9, 2026
nathanwhit
enabled auto-merge (squash)
July 9, 2026 18:57
bartlomieju
pushed a commit
that referenced
this pull request
Jul 15, 2026
## Summary - accept `--min-dep-age` as an alias for `--minimum-dependency-age` - include the alias in minimum dependency age policy hints - cover alias parsing and the updated user-facing hint ## Why The shorter spelling is already used by the embedded CLI parser, but the main Deno CLI only accepted the full `--minimum-dependency-age` spelling. This makes the short form available consistently and ensures users can discover it when a dependency is blocked by the age policy. ## Validation - `cargo test -p deno --lib args::flags::tests::minimum_dependency_age_alias` - `cargo build -p deno` - `cargo test -p integration_tests add_npm_minimum_dependency_age_no_matching_shows_hint -- --nocapture` - `cargo test -p specs_tests --test specs -- npmrc_min_release_age` - `./tools/format.js --check cli/args/flags.rs cli/lib.rs tests/integration/pm_tests.rs tests/specs/npm/npmrc_min_release_age/install.out`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--min-dep-ageas an alias for--minimum-dependency-ageWhy
The shorter spelling is already used by the embedded CLI parser, but the main
Deno CLI only accepted the full
--minimum-dependency-agespelling. This makesthe short form available consistently and ensures users can discover it when a
dependency is blocked by the age policy.
Validation
cargo test -p deno --lib args::flags::tests::minimum_dependency_age_aliascargo build -p denocargo test -p integration_tests add_npm_minimum_dependency_age_no_matching_shows_hint -- --nocapturecargo test -p specs_tests --test specs -- npmrc_min_release_age./tools/format.js --check cli/args/flags.rs cli/lib.rs tests/integration/pm_tests.rs tests/specs/npm/npmrc_min_release_age/install.out