From f224ed4cc50d47a3d0b5b5aa0b379e7396b4cdae Mon Sep 17 00:00:00 2001 From: micmine Date: Sat, 11 Feb 2023 09:40:53 +0100 Subject: [PATCH] Allow negative number for cli get-text line --- wezterm/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wezterm/src/main.rs b/wezterm/src/main.rs index a83206819..c60022fb2 100644 --- a/wezterm/src/main.rs +++ b/wezterm/src/main.rs @@ -384,7 +384,7 @@ Outputs the pane-id for the newly created pane on success" /// Negative numbers proceed backwards into the scrollback. /// The default value is unspecified is 0, the first line of /// the terminal screen. - #[arg(long)] + #[arg(long, allow_hyphen_values = true)] start_line: Option, /// The ending line number. @@ -392,7 +392,7 @@ Outputs the pane-id for the newly created pane on success" /// Negative numbers proceed backwards into the scrollback. /// The default value if unspecified is the bottom of the /// the terminal screen. - #[arg(long)] + #[arg(long, allow_hyphen_values = true)] end_line: Option, /// Include escape sequences that color and style the text.