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

fix: display unstable flags at bottom of help text #21468

Merged
merged 3 commits into from
Dec 6, 2023
Merged
Changes from 1 commit
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
Next Next commit
fix: display unstable flags at bottom of help text
  • Loading branch information
dsherret committed Dec 5, 2023
commit e171d4215d47590b26f13ff59422e26c3ae6181f
4 changes: 4 additions & 0 deletions cli/args/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -992,6 +994,8 @@ fn clap_root() -> Command {
}
dsherret marked this conversation as resolved.
Show resolved Hide resolved

cmd
// reset the display order after the unstable flags
.next_display_order(0)
.arg(
Arg::new("log-level")
.short('L')
Expand Down
Loading