mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
sort: options -C and -c should be mutually exclusive but aren't
This commit is contained in:
parent
5b056704da
commit
c4ffeea320
1 changed files with 2 additions and 2 deletions
|
@ -1371,14 +1371,14 @@ pub fn uu_app() -> Command {
|
|||
options::check::QUIET,
|
||||
options::check::DIAGNOSE_FIRST,
|
||||
]))
|
||||
.conflicts_with(options::OUTPUT)
|
||||
.conflicts_with_all([options::OUTPUT, options::check::CHECK_SILENT])
|
||||
.help("check for sorted input; do not sort"),
|
||||
)
|
||||
.arg(
|
||||
Arg::new(options::check::CHECK_SILENT)
|
||||
.short('C')
|
||||
.long(options::check::CHECK_SILENT)
|
||||
.conflicts_with(options::OUTPUT)
|
||||
.conflicts_with_all([options::OUTPUT, options::check::CHECK])
|
||||
.help(
|
||||
"exit successfully if the given file is already sorted, \
|
||||
and exit with status 1 otherwise.",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue