From 6394aa28fd130685bbc059d90db7f898641e0d21 Mon Sep 17 00:00:00 2001 From: Wilf Silver Date: Mon, 27 Feb 2023 11:20:03 +0000 Subject: [PATCH] Fix opts config --- crates/eww/src/opts.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/eww/src/opts.rs b/crates/eww/src/opts.rs index 05b5c001..e96fdccf 100644 --- a/crates/eww/src/opts.rs +++ b/crates/eww/src/opts.rs @@ -125,7 +125,7 @@ pub enum ActionWithServer { #[arg(long = "toggle")] should_toggle: bool, - #[clap(long, parse(try_from_str = parse_var_update_arg))] + #[arg(long, value_parser = parse_var_update_arg)] args: Option>, }, @@ -133,10 +133,10 @@ pub enum ActionWithServer { /// NOTE: This will in the future be part of eww open, and will then be removed. #[command(name = "open-many")] OpenMany { - #[clap(parse(try_from_str = parse_window_config_and_id))] + #[clap(value_parser = parse_window_config_and_id)] windows: Vec<(String, String)>, - #[clap(long, parse(try_from_str = parse_window_id_args))] + #[clap(long, value_parser = parse_window_id_args)] args: Vec<(String, VarName, DynVal)>, /// If a window is already open, close it instead