diff --git a/cli/src/commands/branch/create.rs b/cli/src/commands/branch/create.rs index b23cb666d..0f6964d81 100644 --- a/cli/src/commands/branch/create.rs +++ b/cli/src/commands/branch/create.rs @@ -25,7 +25,10 @@ use crate::ui::Ui; #[derive(clap::Args, Clone, Debug)] pub struct BranchCreateArgs { /// The branch's target revision - #[arg(long, short)] + // + // The `--to` alias exists for making it easier for the user to switch + // between `branch create`, `branch move`, and `branch set`. + #[arg(long, short, visible_alias = "to")] revision: Option, /// The branches to create diff --git a/cli/src/commands/branch/set.rs b/cli/src/commands/branch/set.rs index 2530df96d..c7cc087ba 100644 --- a/cli/src/commands/branch/set.rs +++ b/cli/src/commands/branch/set.rs @@ -25,7 +25,7 @@ use crate::ui::Ui; #[derive(clap::Args, Clone, Debug)] pub struct BranchSetArgs { /// The branch's target revision - #[arg(long, short)] + #[arg(long, short, visible_alias = "to")] revision: Option, /// Allow moving the branch backwards or sideways