diff options
author | zica <59327276+zica87@users.noreply.github.com> | 2024-02-12 17:54:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 17:54:33 +0800 |
commit | 222f573cd3d58f61f6a0ae5bc1dc5d34e01d0de6 (patch) | |
tree | 29a39509397dd8b5b6f960a1ed937b1d97710f1f | |
parent | ba3666a6fc4ab6178d5fc5932e539f154c27b24d (diff) |
📝 document `--date=locale` (#985)
This flag is added by #840
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | doc/lsd.md | 2 | ||||
-rw-r--r-- | src/app.rs | 2 | ||||
-rw-r--r-- | src/config_file.rs | 2 | ||||
-rw-r--r-- | src/flags/date.rs | 2 |
5 files changed, 5 insertions, 5 deletions
@@ -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 @@ -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 @@ -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>, diff --git a/src/config_file.rs b/src/config_file.rs index b32a1f1..b69c040 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, +<date_format> +# Possible values: date, locale, relative, +<date_format> # date: date # == Dereference == diff --git a/src/flags/date.rs b/src/flags/date.rs index 8bf9f17..5bce5d9 100644 --- a/src/flags/date.rs +++ b/src/flags/date.rs @@ -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> { |