Skip to content

Commit

Permalink
📝 document --date=locale (#985)
Browse files Browse the repository at this point in the history
This flag is added by #840
  • Loading branch information
zica87 authored Feb 12, 2024
1 parent ba3666a commit 222f573
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ color:
# This specifies the date format for the date column. The freeform format
# accepts a strftime like string.
# When "classic" is set, this is set to "date".
# Possible values: date, relative, '+<date_format>'
# Possible values: date, locale, relative, '+<date_format>'
# `date_format` will be a `strftime` formatted value. e.g. `date: '+%d %b %y %X'` will give you a date like this: 17 Jun 21 20:14:55
date: date

Expand Down
2 changes: 1 addition & 1 deletion doc/lsd.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ lsd is a ls command with a lot of pretty colours and some other stuff to enrich
: When to use terminal colours [default: auto] [possible values: always, auto, never]

`--date <date>...`
: How to display date [possible values: date, relative, +date-time-format] [default: date]
: How to display date [possible values: date, locale, relative, +date-time-format] [default: date]

`--depth <num>...`
: Stop recursing into directories after reaching specified depth
Expand Down
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pub struct Cli {
#[arg(long)]
pub total_size: bool,

/// How to display date [default: date] [possible values: date, relative, +date-time-format]
/// How to display date [default: date] [possible values: date, locale, relative, +date-time-format]
#[arg(long, value_parser = validate_date_argument)]
pub date: Option<String>,

Expand Down
2 changes: 1 addition & 1 deletion src/config_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ color:
# This specifies the date format for the date column. The freeform format
# accepts an strftime like string.
# When "classic" is set, this is set to "date".
# Possible values: date, relative, +<date_format>
# Possible values: date, locale, relative, +<date_format>
# date: date
# == Dereference ==
Expand Down
2 changes: 1 addition & 1 deletion src/flags/date.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl Configurable<Self> for DateFlag {
/// Get a potential `DateFlag` variant from a [Config].
///
/// If the `Config::classic` is `true` then this returns the Some(DateFlag::Date),
/// Otherwise if the `Config::date` has value and is one of "date" or "relative",
/// Otherwise if the `Config::date` has value and is one of "date", "locale" or "relative",
/// this returns its corresponding variant in a [Some].
/// Otherwise this returns [None].
fn from_config(config: &Config) -> Option<Self> {
Expand Down

0 comments on commit 222f573

Please sign in to comment.