From 1a06336cbb7746164fcc262fc8fab896a842c694 Mon Sep 17 00:00:00 2001 From: Alexander Weiss Date: Thu, 16 Mar 2023 19:21:23 +0100 Subject: [PATCH] Add CLI aliases for --repository and --repo-hot --- src/repository/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/repository/mod.rs b/src/repository/mod.rs index ecb7234..c31b84b 100644 --- a/src/repository/mod.rs +++ b/src/repository/mod.rs @@ -33,11 +33,11 @@ use crate::repofile::{find_key_in_backend, ConfigFile}; #[serde(default, rename_all = "kebab-case", deny_unknown_fields)] pub struct RepositoryOptions { /// Repository to use - #[clap(short, long, global = true, env = "RUSTIC_REPOSITORY")] + #[clap(short, long, global = true, alias = "repo", env = "RUSTIC_REPOSITORY")] repository: Option, /// Repository to use as hot storage - #[clap(long, global = true, env = "RUSTIC_REPO_HOT")] + #[clap(long, global = true, alias = "repository_hot", env = "RUSTIC_REPO_HOT")] repo_hot: Option, /// Password of the repository - WARNING: Using --password can reveal the password in the process list!