From 97603393c0617e1a38c84367292c3592234bb49a Mon Sep 17 00:00:00 2001 From: "Alexis (Poliorcetics) Bourget" Date: Mon, 12 Feb 2024 23:27:57 +0100 Subject: [PATCH] feat(cli): Add -f/-t for --from/--to to `jj move` --- cli/src/commands/move.rs | 4 ++-- cli/tests/cli-reference@.md.snap | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/src/commands/move.rs b/cli/src/commands/move.rs index 59e18bb6103..61f76b03f22 100644 --- a/cli/src/commands/move.rs +++ b/cli/src/commands/move.rs @@ -38,10 +38,10 @@ use crate::ui::Ui; #[command(group(ArgGroup::new("to_move").args(&["from", "to"]).multiple(true).required(true)))] pub(crate) struct MoveArgs { /// Move part of this change into the destination - #[arg(long)] + #[arg(long, short)] from: Option, /// Move part of the source into this change - #[arg(long)] + #[arg(long, short)] to: Option, /// Interactively choose which parts to move #[arg(long, short)] diff --git a/cli/tests/cli-reference@.md.snap b/cli/tests/cli-reference@.md.snap index 323117b30ed..4a4c7d7a342 100644 --- a/cli/tests/cli-reference@.md.snap +++ b/cli/tests/cli-reference@.md.snap @@ -1057,8 +1057,8 @@ If the source became empty and both the source and destination had a non-empty d ###### **Options:** -* `--from ` — Move part of this change into the destination -* `--to ` — Move part of the source into this change +* `-f`, `--from ` — Move part of this change into the destination +* `-t`, `--to ` — Move part of the source into this change * `-i`, `--interactive` — Interactively choose which parts to move Possible values: `true`, `false`