Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add a note in the help about the unstable flag #27334

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion tests/specs/bundle/removed/bundle_help.out
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion tests/specs/vendor/removed/vendor_help.out
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading