From 45b118eb3e34e639a1d670a16c549a0e57492611 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,