From e6e16cbe0f6aa8d104e12dfa3d5a92507499c635 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Thu, 11 Jul 2024 18:13:45 +0200 Subject: [PATCH] docs: document that durations are only accurately honored to seconds --- src/clock.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/clock.rs b/src/clock.rs index 32b1d15..7a327bf 100644 --- a/src/clock.rs +++ b/src/clock.rs @@ -69,9 +69,13 @@ pub struct Clock { #[clap(short = 'o', long)] pub hour: bool, /// show a time bar that tracks progress of a custom duration + /// + /// Precision: only to seconds #[clap(short, long, value_parser = humantime::parse_duration)] pub custom: Option, /// 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)] pub countdown: Option,