docs: document that durations are only accurately honored to seconds

This commit is contained in:
Christoph J. Scherr 2024-07-11 18:13:45 +02:00
parent 1afc36a239
commit e6e16cbe0f
1 changed files with 4 additions and 0 deletions

View File

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