Make -pp override --paging and vice versa when passed as a later argument. (#2660)

This commit is contained in:
J-Kappes authored and GitHub committed 2023-09-14 05:45:46 +02:00
1 parent fe73010a5e
commit e2bf85e749
2 files changed
+38

No files matched your search

+2
View File
@@ -79,6 +79,7 @@ pub fn build_app(interactive_output: bool) -> Command {
Arg::new("plain")
.overrides_with("plain")
.overrides_with("number")
.overrides_with("paging")
.short('p')
.long("plain")
.action(ArgAction::Count)
@@ -303,6 +304,7 @@ pub fn build_app(interactive_output: bool) -> Command {
.long("paging")
.overrides_with("paging")
.overrides_with("no-paging")
.overrides_with("plain")
.value_name("when")
.value_parser(["auto", "never", "always"])
.default_value("auto")