Allow hyphen values for set-window-width/height arg

Make args like set-window-height -10 parse as is, without having to insert a --.
This commit is contained in:
Ivan Molodetskikh
2024-12-28 11:40:16 +03:00
parent b394cb6379
commit 73bf7b1730
+3 -3
View File
@@ -375,7 +375,7 @@ pub enum Action {
id: Option<u64>,
/// How to change the width.
#[cfg_attr(feature = "clap", arg())]
#[cfg_attr(feature = "clap", arg(allow_hyphen_values = true))]
change: SizeChange,
},
/// Change the height of a window.
@@ -391,7 +391,7 @@ pub enum Action {
id: Option<u64>,
/// How to change the height.
#[cfg_attr(feature = "clap", arg())]
#[cfg_attr(feature = "clap", arg(allow_hyphen_values = true))]
change: SizeChange,
},
/// Reset the height of a window back to automatic.
@@ -421,7 +421,7 @@ pub enum Action {
/// Change the width of the focused column.
SetColumnWidth {
/// How to change the width.
#[cfg_attr(feature = "clap", arg())]
#[cfg_attr(feature = "clap", arg(allow_hyphen_values = true))]
change: SizeChange,
},
/// Switch between keyboard layouts.