mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
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:
+3
-3
@@ -375,7 +375,7 @@ pub enum Action {
|
|||||||
id: Option<u64>,
|
id: Option<u64>,
|
||||||
|
|
||||||
/// How to change the width.
|
/// How to change the width.
|
||||||
#[cfg_attr(feature = "clap", arg())]
|
#[cfg_attr(feature = "clap", arg(allow_hyphen_values = true))]
|
||||||
change: SizeChange,
|
change: SizeChange,
|
||||||
},
|
},
|
||||||
/// Change the height of a window.
|
/// Change the height of a window.
|
||||||
@@ -391,7 +391,7 @@ pub enum Action {
|
|||||||
id: Option<u64>,
|
id: Option<u64>,
|
||||||
|
|
||||||
/// How to change the height.
|
/// How to change the height.
|
||||||
#[cfg_attr(feature = "clap", arg())]
|
#[cfg_attr(feature = "clap", arg(allow_hyphen_values = true))]
|
||||||
change: SizeChange,
|
change: SizeChange,
|
||||||
},
|
},
|
||||||
/// Reset the height of a window back to automatic.
|
/// Reset the height of a window back to automatic.
|
||||||
@@ -421,7 +421,7 @@ pub enum Action {
|
|||||||
/// Change the width of the focused column.
|
/// Change the width of the focused column.
|
||||||
SetColumnWidth {
|
SetColumnWidth {
|
||||||
/// How to change the width.
|
/// How to change the width.
|
||||||
#[cfg_attr(feature = "clap", arg())]
|
#[cfg_attr(feature = "clap", arg(allow_hyphen_values = true))]
|
||||||
change: SizeChange,
|
change: SizeChange,
|
||||||
},
|
},
|
||||||
/// Switch between keyboard layouts.
|
/// Switch between keyboard layouts.
|
||||||
|
|||||||
Reference in New Issue
Block a user