generated from PlexSheep/rs-base
docs: document that durations are only accurately honored to seconds
cargo devel CI / cargo CI (push) Successful in 1m38s
Details
cargo devel CI / cargo CI (push) Successful in 1m38s
Details
This commit is contained in:
parent
99b81be0ab
commit
6ee826a91d
|
@ -69,9 +69,13 @@ pub struct Clock {
|
||||||
#[clap(short = 'o', long)]
|
#[clap(short = 'o', long)]
|
||||||
pub hour: bool,
|
pub hour: bool,
|
||||||
/// show a time bar that tracks progress of a custom duration
|
/// show a time bar that tracks progress of a custom duration
|
||||||
|
///
|
||||||
|
/// Precision: only to seconds
|
||||||
#[clap(short, long, value_parser = humantime::parse_duration)]
|
#[clap(short, long, value_parser = humantime::parse_duration)]
|
||||||
pub custom: Option<std::time::Duration>,
|
pub custom: Option<std::time::Duration>,
|
||||||
/// show a time bar that tracks progress of a custom duration without resetting
|
/// show a time bar that tracks progress of a custom duration without resetting
|
||||||
|
///
|
||||||
|
/// Precision: only to seconds
|
||||||
#[clap(short = 'u', long, value_parser = humantime::parse_duration)]
|
#[clap(short = 'u', long, value_parser = humantime::parse_duration)]
|
||||||
pub countdown: Option<std::time::Duration>,
|
pub countdown: Option<std::time::Duration>,
|
||||||
|
|
||||||
|
|
Reference in New Issue