summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-12-27 21:44:00 +0000
committerDan Davison <dandavison7@gmail.com>2020-12-27 22:06:37 +0000
commit8210334b44bd63a450cf66e4203910e4c2eb055b (patch)
treef0490c49995d00f06dfd199306d12b98d9c0e846 /src/cli.rs
parent32e068bf6e736ff9d364b9d066adbfc62e69b944 (diff)
Use special style attribute to control line-number in hunk-header
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 8fa38c69..cd1555df 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -363,10 +363,13 @@ pub struct Opt {
#[structopt(long = "hyperlinks-file-link-format", default_value = "file://{path}")]
pub hyperlinks_file_link_format: String,
- #[structopt(long = "hunk-header-style", default_value = "syntax")]
- /// Style (foreground, background, attributes) for the hunk-header. See STYLES section. The
- /// special attribute 'file' can be used to include the file path in the hunk header. The style
- /// 'omit' can be used to remove the hunk header section from the output.
+ #[structopt(long = "hunk-header-style", default_value = "line-number syntax")]
+ /// Style (foreground, background, attributes) for the hunk-header. See STYLES section. Special
+ /// attributes 'file' and 'line-number' can be used to include the file path, and number of
+ /// first hunk line, in the hunk header. If included in the hunk header, 'file' and
+ /// 'line-number' are styled according to 'file-style' and 'hunk-header-decoration-style'
+ /// respectively. The style 'omit' can be used to remove the hunk header section from the
+ /// output.
pub hunk_header_style: String,
#[structopt(long = "hunk-header-decoration-style", default_value = "blue box")]