1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 04:52:26 -05:00

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.
This commit is contained in:
Ian Bull 2024-12-11 08:55:29 -08:00
parent 21a9e2d42b
commit 8b125a4d3a
3 changed files with 3 additions and 3 deletions

View file

@ -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
<p(245)>To view the list of individual unstable feature flags, run this command again with --help=unstable</>"))
.action(ArgAction::SetTrue)
.hide(matches!(cfg, UnstableArgsConfig::None))

View file

@ -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

View file

@ -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