summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 0729ad3b..72ca762b 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -443,6 +443,12 @@ pub struct Opt {
/// Text to display in front of a renamed file path.
pub file_renamed_label: String,
+ #[structopt(long = "max-line-length", default_value = "512")]
+ /// Truncate lines longer than this. To prevent any truncation, set to zero. Note that
+ /// syntax-highlighting very long lines (e.g. minified .js) will be very slow if they are not
+ /// truncated.
+ pub max_line_length: usize,
+
/// The width of underline/overline decorations. Use --width=variable to extend decorations and
/// background colors to the end of the text only. Otherwise background colors extend to the
/// full terminal width.