diff options
author | Pierre Peltier <pierre.peltier@adevinta.com> | 2019-10-30 10:28:17 +0100 |
---|---|---|
committer | Abin Simon <abinsimon10@gmail.com> | 2019-12-06 11:35:03 +0530 |
commit | 7ead8aec4e70009fd2ce96c0c1afeb06f90d0f48 (patch) | |
tree | 0243c61d20c9825413ff0538c4e6066374116f0a | |
parent | 27f8fd3c6f46de6e2183e45de8abd2fa6280420d (diff) |
Remove the --prefix-indent flag
This flag is not more possible with the term_grid layout tool
-rw-r--r-- | src/app.rs | 6 | ||||
-rw-r--r-- | src/display.rs | 4 | ||||
-rw-r--r-- | src/flags.rs | 3 |
3 files changed, 0 insertions, 13 deletions
@@ -54,12 +54,6 @@ pub fn build() -> App<'static, 'static> { .help("Whether to use fancy or unicode icons"), ) .arg( - Arg::with_name("prefix-indent") - .long("prefix-indent") - .multiple(false) - .help("Prefix tab indent before file and directory names in output"), - ) - .arg( Arg::with_name("indicators") .short("F") .long("classify") diff --git a/src/display.rs b/src/display.rs index 4594dc1..5223306 100644 --- a/src/display.rs +++ b/src/display.rs @@ -58,10 +58,6 @@ fn inner_display_grid( continue; } - if flags.prefix_indent { - output.push_str(" "); - } - let blocks = get_output(&meta, &colors, &icons, &flags, &padding_rules); for block in blocks { diff --git a/src/flags.rs b/src/flags.rs index 95a8f64..57ddc59 100644 --- a/src/flags.rs +++ b/src/flags.rs @@ -13,7 +13,6 @@ pub struct Flags { pub size: SizeFlag, pub date: DateFlag, pub color: WhenFlag, - pub prefix_indent: bool, pub icon: WhenFlag, pub icon_theme: IconTheme, pub recursion_depth: usize, @@ -155,7 +154,6 @@ impl Flags { } else { WhenFlag::from(color_inputs[color_inputs.len() - 1]) }, - prefix_indent: matches.is_present("prefix-indent"), icon: if classic_mode { WhenFlag::Never } else { @@ -187,7 +185,6 @@ impl Default for Flags { size: SizeFlag::Default, date: DateFlag::Date, color: WhenFlag::Auto, - prefix_indent: false, icon: WhenFlag::Auto, icon_theme: IconTheme::Fancy, blocks: vec![], |