aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-12-28 11:40:16 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2024-12-30 20:12:37 +0300
commit73bf7b1730e6911adb09d8253035f4510d83dbe0 (patch)
tree60dccbdd4a20899dd09fe847bbcf35e6ec3a966b
parentb394cb637977e111d8bb67be12c1f4904f4d9047 (diff)
downloadniri-73bf7b1730e6911adb09d8253035f4510d83dbe0.tar.gz
niri-73bf7b1730e6911adb09d8253035f4510d83dbe0.tar.bz2
niri-73bf7b1730e6911adb09d8253035f4510d83dbe0.zip
Allow hyphen values for set-window-width/height arg
Make args like set-window-height -10 parse as is, without having to insert a --.
-rw-r--r--niri-ipc/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/niri-ipc/src/lib.rs b/niri-ipc/src/lib.rs
index 1d596941..8ff2ba5c 100644
--- a/niri-ipc/src/lib.rs
+++ b/niri-ipc/src/lib.rs
@@ -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.