From c849b8722f303b5e6c773ef5c61fb0490089d58f Mon Sep 17 00:00:00 2001 From: xxyzz Date: Sun, 13 Feb 2022 10:18:40 +0800 Subject: [PATCH] df: `--output` option conflicts with `-i`, `-P`, `-T` --- src/uu/df/src/df.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/uu/df/src/df.rs b/src/uu/df/src/df.rs index 02cfca012..be33238ff 100644 --- a/src/uu/df/src/df.rs +++ b/src/uu/df/src/df.rs @@ -338,6 +338,7 @@ pub fn uu_app<'a>() -> App<'a> { Arg::new(OPT_INODES) .short('i') .long("inodes") + .conflicts_with(OPT_OUTPUT) .help("list inode information instead of block usage"), ) .arg(Arg::new(OPT_KILO).short('k').help("like --block-size=1K")) @@ -367,6 +368,7 @@ pub fn uu_app<'a>() -> App<'a> { Arg::new(OPT_PORTABILITY) .short('P') .long("portability") + .conflicts_with(OPT_OUTPUT) .help("use the POSIX output format"), ) .arg( @@ -388,6 +390,7 @@ pub fn uu_app<'a>() -> App<'a> { Arg::new(OPT_PRINT_TYPE) .short('T') .long("print-type") + .conflicts_with(OPT_OUTPUT) .help("print file system type"), ) .arg(