From 8b125a4d3a570692e5b147159c61be102cc8283f Mon Sep 17 00:00:00 2001 From: Ian Bull Date: Wed, 11 Dec 2024 08:55:29 -0800 Subject: [PATCH] chore: add a note in the help about the unstable flag The `--unstable` flag was removed in Deno 2.0, and will be completely removed in 2.5. Add a note about the removal of this flag and how users should use `--unstable-*` instead. --- cli/args/flags.rs | 2 +- tests/specs/bundle/removed/bundle_help.out | 2 +- tests/specs/vendor/removed/vendor_help.out | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/args/flags.rs b/cli/args/flags.rs index cdeaa1b335682c..fbcaf9fb818303 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -4350,7 +4350,7 @@ impl CommandExt for Command { let mut cmd = self.arg( Arg::new("unstable") .long("unstable") - .help(cstr!("Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features + .help(cstr!("The `--unstable` flag has been removed in Deno 2.0. Use granular `--unstable-*` flags instead To view the list of individual unstable feature flags, run this command again with --help=unstable")) .action(ArgAction::SetTrue) .hide(matches!(cfg, UnstableArgsConfig::None)) diff --git a/tests/specs/bundle/removed/bundle_help.out b/tests/specs/bundle/removed/bundle_help.out index d8e83b95d5e450..954f37882ad671 100644 --- a/tests/specs/bundle/removed/bundle_help.out +++ b/tests/specs/bundle/removed/bundle_help.out @@ -6,5 +6,5 @@ Usage: deno bundle [OPTIONS] Options: -q, --quiet Suppress diagnostic output - --unstable Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features + --unstable The `--unstable` flag has been removed in Deno 2.0. Use granular `--unstable-*` flags instead To view the list of individual unstable feature flags, run this command again with --help=unstable diff --git a/tests/specs/vendor/removed/vendor_help.out b/tests/specs/vendor/removed/vendor_help.out index 176b2211af458b..e995d4209778bf 100644 --- a/tests/specs/vendor/removed/vendor_help.out +++ b/tests/specs/vendor/removed/vendor_help.out @@ -6,5 +6,5 @@ Usage: deno vendor [OPTIONS] Options: -q, --quiet Suppress diagnostic output - --unstable Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features + --unstable The `--unstable` flag has been removed in Deno 2.0. Use granular `--unstable-*` flags instead To view the list of individual unstable feature flags, run this command again with --help=unstable