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
This commit is contained in:
Eric Holk 2026-04-14 11:18:09 -07:00 committed by GitHub
parent edac6a7b7a
commit bb59cac88e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"])]