mirror of
https://github.com/lsd-rs/lsd
synced 2024-11-10 06:14:19 +00:00
parent
ba3666a6fc
commit
222f573cd3
5 changed files with 5 additions and 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>,
|
||||
|
||||
|
|
|
@ -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 ==
|
||||
|
|
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue