docs: document that durations are only accurately honored to seconds
cargo devel CI / cargo CI (push) Successful in 1m38s Details

This commit is contained in:
Christoph J. Scherr 2024-07-11 18:13:45 +02:00
parent 99b81be0ab
commit 6ee826a91d
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>,