Fix action parsing
This commit is contained in:
5 files changed
+30
-2
No files matched your search
+1
-1
@@ -18,6 +18,6 @@ pub struct Opt {
|
||||
/// The name of the camera. Must be a name in the config
|
||||
pub camera: String,
|
||||
/// Whether to turn the PIR ON or OFF
|
||||
#[arg(value_parser = onoff_parse, name = "on|off")]
|
||||
#[arg(value_parser = onoff_parse, action = clap::ArgAction::Set, name = "on|off")]
|
||||
pub on: Option<bool>,
|
||||
}
|
||||
@@ -18,6 +18,6 @@ pub struct Opt {
|
||||
/// The name of the camera to change the lights of. Must be a name in the config
|
||||
pub camera: String,
|
||||
/// Whether to turn the light on or off
|
||||
#[arg(value_parser = onoff_parse, name = "on|off")]
|
||||
#[arg(value_parser = onoff_parse, action = clap::ArgAction::Set, name = "on|off")]
|
||||
pub on: bool,
|
||||
}
|
||||
Reference in new issue
Block a user