From 2695b30376f12f81db657ea9c36ce494b207d0fd Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Fri, 7 Jan 2022 17:21:17 -0700 Subject: [PATCH] wezterm cli: suggest --new-window when no pane id is specified --- wezterm/src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wezterm/src/main.rs b/wezterm/src/main.rs index 25cdb9fb9..9363d35fd 100644 --- a/wezterm/src/main.rs +++ b/wezterm/src/main.rs @@ -517,8 +517,9 @@ async fn run_cli_async(config: config::ConfigHandle, cli: CliCommand) -> anyhow: None => std::env::var("WEZTERM_PANE") .map_err(|_| { anyhow!( - "--pane-id was not specified and $WEZTERM_PANE - is not set in the environment" + "--pane-id was not specified and $WEZTERM_PANE \ + is not set in the environment. \ + Consider using --new-window?" ) })? .parse()?,