refactor: hide the sound option behind the sound feature
cargo devel CI / cargo CI (push) Successful in 1m43s Details

This commit is contained in:
Christoph J. Scherr 2024-07-12 19:15:58 +02:00
parent daa764cb96
commit d62fd468ff
1 changed files with 1 additions and 0 deletions

View File

@ -78,6 +78,7 @@ pub struct Clock {
#[clap(short = 'u', long, value_parser = humantime::parse_duration)]
pub countdown: Option<std::time::Duration>,
/// Play a notification sound when the countdown is up
#[cfg(feature = "sound")]
#[clap(short, long, default_value_t = true)]
pub sound: bool,