From bb59cac88efea62e8058906e5de0c2a7044c37c5 Mon Sep 17 00:00:00 2001 From: Eric Holk Date: Tue, 14 Apr 2026 11:18:09 -0700 Subject: [PATCH] cli: Hide -r/--reuse from --help in favor of -e/--existing (#53924) Soft-deprecates the `-r`/`--reuse` CLI flag by hiding it from `--help` output. The flag remains fully functional for backward compatibility, but new users will discover `-e`/`--existing` instead. The change is a single `hide = true` addition to the clap arg attribute. Release Notes: - N/A --- crates/cli/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index 520f6e6cf2e05595a2f35b194cb65ffe135b4814..d46b90fdb77dc5b1fca87133cf72ce265d2701c1 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -73,7 +73,7 @@ struct Args { #[arg(short, long, overrides_with_all = ["add", "reuse", "existing"])] new: bool, /// Reuse an existing window, replacing its workspace - #[arg(short, long, overrides_with_all = ["add", "new", "existing"])] + #[arg(short, long, overrides_with_all = ["add", "new", "existing"], hide = true)] reuse: bool, /// Open in existing Zed window #[arg(short = 'e', long = "existing", overrides_with_all = ["add", "new", "reuse"])]