mirror of
https://github.com/lsd-rs/lsd
synced 2025-03-04 23:17:15 +00:00
Change flag to --prefix-indent
This commit is contained in:
parent
66eb8532c2
commit
b19e54e3ab
3 changed files with 7 additions and 8 deletions
|
@ -54,11 +54,10 @@ pub fn build() -> App<'static, 'static> {
|
|||
.help("Whether to use fancy or unicode icons"),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("indent")
|
||||
.short("i")
|
||||
.long("indent")
|
||||
Arg::with_name("prefix-indent")
|
||||
.long("prefix-indent")
|
||||
.multiple(false)
|
||||
.help("Add tab indent before file and directory names in output"),
|
||||
.help("Prefix tab indent before file and directory names in output"),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("indicators")
|
||||
|
|
|
@ -75,7 +75,7 @@ fn inner_display_one_line(
|
|||
}
|
||||
|
||||
// TODO: Figure out why this breaks file icon rendering.
|
||||
if flags.indent {
|
||||
if flags.prefix_indent {
|
||||
output.push_str(" ");
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ pub struct Flags {
|
|||
pub size: SizeFlag,
|
||||
pub date: DateFlag,
|
||||
pub color: WhenFlag,
|
||||
pub indent: bool,
|
||||
pub prefix_indent: bool,
|
||||
pub icon: WhenFlag,
|
||||
pub icon_theme: IconTheme,
|
||||
pub recursion_depth: usize,
|
||||
|
@ -116,7 +116,7 @@ impl Flags {
|
|||
} else {
|
||||
WhenFlag::from(color_inputs[color_inputs.len() - 1])
|
||||
},
|
||||
indent: matches.is_present("indent"),
|
||||
prefix_indent: matches.is_present("prefix-indent"),
|
||||
icon: if classic_mode {
|
||||
WhenFlag::Never
|
||||
} else {
|
||||
|
@ -148,7 +148,7 @@ impl Default for Flags {
|
|||
size: SizeFlag::Default,
|
||||
date: DateFlag::Date,
|
||||
color: WhenFlag::Auto,
|
||||
indent: false,
|
||||
prefix_indent: false,
|
||||
icon: WhenFlag::Auto,
|
||||
icon_theme: IconTheme::Fancy,
|
||||
blocks: vec![
|
||||
|
|
Loading…
Add table
Reference in a new issue