mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-12-27 10:22:40 +00:00
Git Column is Useless Without --long
This commit is contained in:
parent
7dc3a02185
commit
5d152dbe15
@ -279,6 +279,9 @@ impl View {
|
||||
else if matches.opt_present("blocks") {
|
||||
Err(Misfire::Useless("blocks", false, "long"))
|
||||
}
|
||||
else if cfg!(feature="git") && matches.opt_present("git") {
|
||||
Err(Misfire::Useless("git", false, "long"))
|
||||
}
|
||||
else if matches.opt_present("time") {
|
||||
Err(Misfire::Useless("time", false, "long"))
|
||||
}
|
||||
@ -653,6 +656,13 @@ mod test {
|
||||
assert_eq!(opts.unwrap_err(), Misfire::Useless("blocks", false, "long"))
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(feature="git")]
|
||||
fn just_git() {
|
||||
let opts = Options::getopts(&[ "--git".to_string() ]);
|
||||
assert_eq!(opts.unwrap_err(), Misfire::Useless("git", false, "long"))
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn extended_without_long() {
|
||||
if xattr::feature_implemented() {
|
||||
|
Loading…
Reference in New Issue
Block a user