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:
parent
9b5439256f
commit
3357882496
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ use crate::text_util;
|
||||||
use crate::ui::Ui;
|
use crate::ui::Ui;
|
||||||
|
|
||||||
#[derive(clap::Args, Clone, Debug)]
|
#[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("short-format").args(&["summary", "stat", "types"])))]
|
||||||
#[command(group(clap::ArgGroup::new("long-format").args(&["git", "color_words", "tool"])))]
|
#[command(group(clap::ArgGroup::new("long-format").args(&["git", "color_words", "tool"])))]
|
||||||
pub struct DiffFormatArgs {
|
pub struct DiffFormatArgs {
|
||||||
|
|
Loading…
Reference in a new issue