From e718e3f4713686c4f8df4e54cd73f9a1b81b3a17 Mon Sep 17 00:00:00 2001 From: Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> Date: Wed, 4 Dec 2024 13:32:48 -0500 Subject: [PATCH] fix(outdated): allow `--latest` without `--update` (#27227) Ref #27025. it does nothing (it's the default behavior) but it doesn't hurt to allow it --- cli/args/flags.rs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/cli/args/flags.rs b/cli/args/flags.rs index 5ea28bfec1..c08d81abb0 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -2664,10 +2664,10 @@ Display outdated dependencies:
deno outdated>
deno outdated --compatible> -Update dependencies: +Update dependencies to latest semver compatible versions:
deno outdated --update> +Update dependencies to latest versions, ignoring semver requirements:
deno outdated --update --latest> -
deno outdated --update> Filters can be used to select which packages to act on. Filters can include wildcards (*) to match multiple packages.
deno outdated --update --latest \"@std/*\"> @@ -2703,7 +2703,6 @@ Specific version requirements to update to can be specified: .help( "Update to the latest version, regardless of semver constraints", ) - .requires("update") .conflicts_with("compatible"), ) .arg( @@ -11687,6 +11686,14 @@ Usage: deno repl [OPTIONS] [-- [ARGS]...]\n" recursive: false, }, ), + ( + svec!["--latest"], + OutdatedFlags { + filters: svec![], + kind: OutdatedKind::PrintOutdated { compatible: false }, + recursive: false, + }, + ), ]; for (input, expected) in cases { let mut args = svec!["deno", "outdated"];