diff --git a/src/main.rs b/src/main.rs index baf6546..0d5985e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -56,16 +56,16 @@ enum Command { /// Launch the AareGUI with default settings #[command(alias = "g")] Gui { - /// Config entry (deployment) to launch. Defaults to the detected beamline. - #[arg(long)] - entry: Option, + /// Deployment to launch. Defaults to the detected beamline. + #[arg(short = 'd', long)] + deployment: Option, }, /// Launch the AareDAQ server with default settings #[command(alias = "s")] Server { - /// Config entry (deployment) to launch. Defaults to the detected beamline. - #[arg(long)] - entry: Option, + /// Deployment to launch. Defaults to the detected beamline. + #[arg(short = 'd', long)] + deployment: Option, /// Env file (`key=value` per line) added to the server's environment. /// Ignored with a warning if it does not exist. @@ -101,10 +101,13 @@ fn main() -> Result<()> { launcher::launch_with_env(&launch.python, &launch.entrypoint, &env)?; } } - Command::Gui { entry } => launcher::launch_gui(lookup_entry(&config, entry)?)?, - Command::Server { entry, env_file } => { + Command::Gui { deployment } => launcher::launch_gui(lookup_entry(&config, deployment)?)?, + Command::Server { + deployment, + env_file, + } => { let env = env_file::load_env_file(&env_file); - launcher::launch_server(lookup_entry(&config, entry)?, &env)? + launcher::launch_server(lookup_entry(&config, deployment)?, &env)? } }