Remove the --prefix-indent flag

This flag is not more possible with the term_grid layout tool
This commit is contained in:
Pierre Peltier 2019-10-30 10:28:17 +01:00 committed by Abin Simon
parent 27f8fd3c6f
commit 7ead8aec4e
3 changed files with 0 additions and 13 deletions

View file

@ -53,12 +53,6 @@ pub fn build() -> App<'static, 'static> {
.number_of_values(1)
.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")

View file

@ -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 {

View file

@ -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![],