Make --no-paging/-P override --paging=... if passed as a later arg (#2201)

* Make the no-paging option override earlier paging options

* Update CHANGELOG.md

Co-authored-by: Martin Nordholts <enselic@gmail.com>
This commit is contained in:
Marie Katrine EkebergandMartin Nordholts authored and GitHub committed 2022-08-14 21:09:13 +02:00
1 parent 02a9d191ed
commit 9c7ca33929
3 files changed
+14

No files matched your search

+1
View File
@@ -293,6 +293,7 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
Arg::with_name("paging")
.long("paging")
.overrides_with("paging")
.overrides_with("no-paging")
.takes_value(true)
.value_name("when")
.possible_values(&["auto", "never", "always"])