mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
du: make du -a -s error
This commit is contained in:
@@ -1288,6 +1288,7 @@ pub fn uu_app() -> Command {
|
||||
.short('a')
|
||||
.long(options::ALL)
|
||||
.help(translate!("du-help-all"))
|
||||
.conflicts_with(options::SUMMARIZE)
|
||||
.action(ArgAction::SetTrue),
|
||||
)
|
||||
.arg(
|
||||
|
||||
@@ -84,6 +84,11 @@ fn du_basics(s: &str) {
|
||||
assert_eq!(s, answer);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_all_summarize() {
|
||||
new_ucmd!().arg("-a").arg("-s").fails_with_code(1); //clap provided message
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_invalid_arg() {
|
||||
new_ucmd!().arg("--definitely-invalid").fails_with_code(1);
|
||||
|
||||
Reference in New Issue
Block a user