From 222f573cd3d58f61f6a0ae5bc1dc5d34e01d0de6 Mon Sep 17 00:00:00 2001 From: zica <59327276+zica87@users.noreply.github.com> Date: Mon, 12 Feb 2024 17:54:33 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20document=20`--date=3Dlocale`=20(?= =?UTF-8?q?#985)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This flag is added by #840 --- README.md | 2 +- doc/lsd.md | 2 +- src/app.rs | 2 +- src/config_file.rs | 2 +- src/flags/date.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fc9bdd3f8..ae47fd3fe 100644 --- a/README.md +++ b/README.md @@ -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, '+' +# Possible values: date, locale, relative, '+' # `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 diff --git a/doc/lsd.md b/doc/lsd.md index 5cef23460..28bd63b23 100644 --- a/doc/lsd.md +++ b/doc/lsd.md @@ -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 ...` -: 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 ...` : Stop recursing into directories after reaching specified depth diff --git a/src/app.rs b/src/app.rs index 0bb69259b..6ef636b98 100644 --- a/src/app.rs +++ b/src/app.rs @@ -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, diff --git a/src/config_file.rs b/src/config_file.rs index b32a1f1d4..b69c0403b 100644 --- a/src/config_file.rs +++ b/src/config_file.rs @@ -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, + +# Possible values: date, locale, relative, + # date: date # == Dereference == diff --git a/src/flags/date.rs b/src/flags/date.rs index 8bf9f177c..5bce5d9b6 100644 --- a/src/flags/date.rs +++ b/src/flags/date.rs @@ -62,7 +62,7 @@ impl Configurable 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 {