From 3357882496649fc7e930976a9a03cf94b9479155 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Wed, 10 Jan 2024 22:28:49 +0900 Subject: [PATCH] cli: group diff formatting options in help Since DiffFormatArgs is flattened into log args, it's a bit hard to reason about what --color-words means for example. --- cli/src/diff_util.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/src/diff_util.rs b/cli/src/diff_util.rs index 4e7239eb1..0ffc9d116 100644 --- a/cli/src/diff_util.rs +++ b/cli/src/diff_util.rs @@ -44,6 +44,7 @@ use crate::text_util; use crate::ui::Ui; #[derive(clap::Args, Clone, Debug)] +#[command(next_help_heading = "Diff Formatting Options")] #[command(group(clap::ArgGroup::new("short-format").args(&["summary", "stat", "types"])))] #[command(group(clap::ArgGroup::new("long-format").args(&["git", "color_words", "tool"])))] pub struct DiffFormatArgs {