From 1ac370632fdac5b7bbab3a24045692d6b74551dd Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 6 Dec 2023 09:22:30 -0500 Subject: 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. --- cli/args/flags.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli/args/flags.rs') 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') -- cgit v1.2.3