summaryrefslogtreecommitdiff
path: root/cli/args/flags.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-12-06 09:22:30 -0500
committerGitHub <noreply@github.com>2023-12-06 09:22:30 -0500
commit1ac370632fdac5b7bbab3a24045692d6b74551dd (patch)
tree18dd9c83e83d98b4639af1432d95d2c33940f636 /cli/args/flags.rs
parent8c0fb9003d874fcbee0b1a6f6ee30dfb58c668bc (diff)
fix: display unstable flags at bottom of help text (#21468)
Moves the unstable flags to be at the bottom of the help text. They were previously all over the place for some reason.
Diffstat (limited to 'cli/args/flags.rs')
-rw-r--r--cli/args/flags.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs
index 4801737a8..5a77c8bb2 100644
--- a/cli/args/flags.rs
+++ b/cli/args/flags.rs
@@ -946,6 +946,8 @@ fn clap_root() -> Command {
.max_term_width(80)
.version(crate::version::deno())
.long_version(long_version)
+ // cause --unstable flags to display at the bottom of the help text
+ .next_display_order(1000)
.arg(
Arg::new("unstable")
.long("unstable")
@@ -992,6 +994,8 @@ fn clap_root() -> Command {
}
cmd
+ // reset the display order after the unstable flags
+ .next_display_order(0)
.arg(
Arg::new("log-level")
.short('L')