diff options
author | Dan Davison <dandavison7@gmail.com> | 2021-01-07 04:58:53 -0500 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2021-01-07 05:01:15 -0500 |
commit | 0cffeae15bc31f9af13bd447a6230b80b81de264 (patch) | |
tree | ef2940c27bf87946f8ff18b215f5636c92158885 | |
parent | 346edb8cca119e18947bc4ff012e25fff037741f (diff) |
Fix --help output for hunk-header-style
-rw-r--r-- | README.md | 13 | ||||
-rw-r--r-- | src/cli.rs | 6 |
2 files changed, 12 insertions, 7 deletions
@@ -700,9 +700,16 @@ OPTIONS: --hunk-header-style <hunk-header-style> 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 [default: line-number syntax] + header. The style 'omit' can be used to remove the hunk header section from the output [default: line- + number syntax] + --hunk-header-file-style <hunk-header-file-style> + Style (foreground, background, attributes) for the file path part of the hunk-header. See STYLES section. + The file path will only be displayed if hunk-header-style contains the 'file' special attribute [default: + blue] + --hunk-header-line-number-style <hunk-header-line-number-style> + Style (foreground, background, attributes) for the line number part of the hunk-header. See STYLES section. + The line number will only be displayed if hunk-header-style contains the 'line-number' special attribute + [default: blue] --hunk-header-decoration-style <hunk-header-decoration-style> Style (foreground, background, attributes) for the hunk-header decoration. See STYLES section. The style string should contain one of the special attributes 'box', 'ul' (underline), 'ol' (overline), or the @@ -366,10 +366,8 @@ pub struct Opt { #[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. + /// first hunk line, in the hunk header. The style 'omit' can be used to remove the hunk header + /// section from the output. pub hunk_header_style: String, #[structopt(long = "hunk-header-file-style", default_value = "blue")] |