Fix the display tree with the -l flag

This commit is contained in:
Pierre Peltier 2019-11-04 12:09:05 +01:00 committed by Abin Simon
parent e4342f86d1
commit 7c0bdb6b6a

View file

@ -62,13 +62,13 @@ impl Flags {
SortOrder::Default
};
let layout = if matches.is_present("long")
let layout = if matches.is_present("tree") {
Layout::Tree
} else if matches.is_present("long")
|| matches.is_present("oneline")
|| blocks_inputs.len() > 1
{
Layout::OneLine
} else if matches.is_present("tree") {
Layout::Tree
} else {
Layout::Grid
};