Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/lsd.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ lsd is a ls command with a lot of pretty colours and some other stuff to enrich
`--hyperlink <hyperlink>...`
: Attach hyperlink to filenames [default: never] [possible values: always, auto, never]

`--icon <icon>...`
`--icon[=<icon>]...`
: When to print the icons [default: auto] [possible values: always, auto, never]

`--icon-theme <icon-theme>...`
Expand Down
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub struct Cli {
pub color: Option<String>,

/// When to print the icons [default: auto]
#[arg(long, value_name = "MODE", value_parser = ["always", "auto", "never"])]
#[arg(long, value_name = "MODE", value_parser = ["always", "auto", "never"], require_equals=true, default_missing_value="always", num_args=0..=1)]
pub icon: Option<String>,

/// Whether to use fancy or unicode icons [default: fancy]
Expand Down