mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-30 07:33:53 +00:00
Re-add missing failing option combinations
This commit is contained in:
parent
922cd2a188
commit
26e3abc6b1
@ -288,6 +288,12 @@ impl View {
|
|||||||
if cfg!(feature="git") && matches.opt_present("git") {
|
if cfg!(feature="git") && matches.opt_present("git") {
|
||||||
Err(Useless("git", false, "long"))
|
Err(Useless("git", false, "long"))
|
||||||
}
|
}
|
||||||
|
else if matches.opt_present("level") && !matches.opt_present("recurse") {
|
||||||
|
Err(Useless2("level", "recurse", "tree"))
|
||||||
|
}
|
||||||
|
else if Attribute::feature_implemented() && matches.opt_present("extended") {
|
||||||
|
Err(Useless("extended", false, "long"))
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
@ -721,5 +727,4 @@ mod test {
|
|||||||
let opts = Options::getopts(&[ "--level".to_string(), "69105".to_string() ]);
|
let opts = Options::getopts(&[ "--level".to_string(), "69105".to_string() ]);
|
||||||
assert_eq!(opts.unwrap_err(), Misfire::Useless2("level", "recurse", "tree"))
|
assert_eq!(opts.unwrap_err(), Misfire::Useless2("level", "recurse", "tree"))
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user