cli: Add default options for active_low and active_time arguments

This commit is contained in:
George Kaklamanos 2023-09-17 19:58:58 +03:00
parent 58f9eec430
commit 29997e3ba1

View file

@ -58,8 +58,10 @@ pub struct GPIO {
#[clap(short, long)]
pub pin: Option<u8>,
#[clap(short, long)]
#[arg(default_value = "Some(false)")]
pub active_low: Option<bool>,
#[clap(short = 't', long)]
#[arg(default_value = "Some(2000)")]
pub active_time: Option<u32>,
}