diff options
author | Pierre Peltier <pierre.peltier@adevinta.com> | 2019-11-04 12:09:05 +0100 |
---|---|---|
committer | Abin Simon <abinsimon10@gmail.com> | 2019-12-06 11:35:03 +0530 |
commit | 7c0bdb6b6aac84d980a19ac7a83f864de158c868 (patch) | |
tree | 3bc2feae5f81d7e1fdcf5c2cfaa9a405b51315ed | |
parent | e4342f86d1b9672e271a4a717c9a33c8826fab72 (diff) |
Fix the display tree with the -l flag
-rw-r--r-- | src/flags.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/flags.rs b/src/flags.rs index fe327e8..0a10b7f 100644 --- a/src/flags.rs +++ b/src/flags.rs @@ -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 }; |