cli: Add default options for active_low and active_time arguments
This commit is contained in:
parent
58f9eec430
commit
29997e3ba1
1 changed files with 2 additions and 0 deletions
|
@ -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>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue