summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2022-01-19 08:18:41 -0500
committerDan Davison <dandavison7@gmail.com>2022-01-19 08:21:23 -0500
commit0f2b48dd6257a33458c126bf033e39059ce0fe0d (patch)
treecc3b00cc4ad4d05572a5c30d00e47ce24dd1e137
parent3aed51cdc120cae73628fcce511c9124614f5e51 (diff)
Prevent clap from switching to multiline format for short help
Ref https://github.com/clap-rs/clap/issues/3300 Fixes #377
-rw-r--r--src/cli.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 233adc93..88785c8e 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -20,6 +20,7 @@ use crate::utils::bat::output::PagingMode;
version,
color = ColorChoice::Always,
setting(AppSettings::DeriveDisplayOrder),
+ term_width(usize::MAX),
after_long_help = "\
GIT CONFIG
----------
@@ -729,8 +730,7 @@ pub struct Opt {
#[clap(
long = "merge-conflict-theirs-diff-header-decoration-style",
default_value = "box",
- // See https://github.com/clap-rs/clap/issues/3300
- value_name = "STYLE> "
+ value_name = "STYLE"
)]
/// Style string for the decoration of the header above the 'theirs' merge conflict diff.
///