ok/jj
1
0
Fork 0
forked from mirrors/jj

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.
This commit is contained in:
Yuya Nishihara 2024-01-10 22:28:49 +09:00
parent 9b5439256f
commit 3357882496

View file

@ -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 {