mirror of
https://github.com/rustic-rs/rustic.git
synced 2025-10-26 11:18:51 +00:00
Add CLI aliases for --repository and --repo-hot
This commit is contained in:
parent
143167ca64
commit
1a06336cbb
@ -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<String>,
|
||||
|
||||
/// 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<String>,
|
||||
|
||||
/// Password of the repository - WARNING: Using --password can reveal the password in the process list!
|
||||
|
||||
Loading…
Reference in New Issue
Block a user