mirror of
https://github.com/sharkdp/bat
synced 2026-08-09 19:51:48 +00:00
Added -S flag for truncating long lines
This commit is contained in:
@@ -201,6 +201,13 @@ pub fn build_app(interactive_output: bool) -> Command<'static> {
|
||||
The '--terminal-width' option can be used in addition to \
|
||||
control the output width."),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("chop-long-lines")
|
||||
.long("chop-long-lines")
|
||||
.short('S')
|
||||
.takes_value(false)
|
||||
.help("Truncate all lines longer than screen width. Alias for '--wrap=never'."),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("terminal-width")
|
||||
.long("terminal-width")
|
||||
|
||||
Reference in New Issue
Block a user