1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-06 19:21:43 +00:00

Add short flag for --paging=never

This commit is contained in:
Dash Peters
2020-06-30 12:18:17 -07:00
parent b0191cdf2c
commit 2575aae945
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -85,6 +85,8 @@ impl App {
if self.matches.occurrences_of("plain") > 1 {
// If we have -pp as an option when in auto mode, the pager should be disabled.
PagingMode::Never
} else if self.matches.is_present("disable-paging") {
PagingMode::Never
} else if inputs.iter().any(Input::is_stdin) {
// If we are reading from stdin, only enable paging if we write to an
// interactive terminal and if we do not *read* from an interactive