From d62fd468ffd04fe2f1e551d42f7e782df42368ea Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Fri, 12 Jul 2024 19:15:58 +0200 Subject: [PATCH] refactor: hide the sound option behind the sound feature --- src/clock.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/clock.rs b/src/clock.rs index c074e8c..27d20f8 100644 --- a/src/clock.rs +++ b/src/clock.rs @@ -78,6 +78,7 @@ pub struct Clock { #[clap(short = 'u', long, value_parser = humantime::parse_duration)] pub countdown: Option, /// Play a notification sound when the countdown is up + #[cfg(feature = "sound")] #[clap(short, long, default_value_t = true)] pub sound: bool,