Skip to content

Commit

Permalink
chore: A note in the help about the unstable flag
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
irbull committed Dec 11, 2024
1 parent 21a9e2d commit 4f9c41b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/args/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 4f9c41b

Please sign in to comment.