📝 document --date=locale (#985)

This flag is added by #840
This commit is contained in:
zica 2024-02-12 17:54:33 +08:00 committed by GitHub
parent ba3666a6fc
commit 222f573cd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View file

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

View file

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

View file

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

View file

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

View file

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