1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-11 20:11:43 +00:00

Change to name no-paging, add long flag and alias

This commit is contained in:
Dash Peters
2020-07-01 21:35:45 -07:00
parent b0d19752c6
commit 5fdeeabb44
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ 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") {
} else if self.matches.is_present("no-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