fix: add short names for commands

This commit is contained in:
2026-08-28 08:00:00 +05:00
parent e099995f42
commit ec98d30b31
+4 -3
View File
@@ -9,6 +9,7 @@ use clap::{ArgGroup, Parser};
#[command(group = ArgGroup::new("target").required(true).args(["project", "list", "list_servers", "pick", "this"]))]
pub struct Cli {
/// Project name from deploy.toml
#[arg(short, long)]
pub project: Option<String>,
/// Explicit path to the config file
#[arg(long, value_name = "PATH")]
@@ -17,15 +18,15 @@ pub struct Cli {
#[arg(long)]
pub dry_run: bool,
/// List configured projects and exit
#[arg(long)]
#[arg(short, long)]
pub list: bool,
/// List configured servers and exit
#[arg(long)]
pub list_servers: bool,
/// Interactively pick a project to deploy (fuzzy search)
#[arg(long)]
#[arg(short, long)]
pub pick: bool,
/// Deploy the project whose workdir matches the current folder (global config)
#[arg(long)]
#[arg(short, long)]
pub this: bool,
}