[pbs-devel] [PATCH vma-to-pbs 9/9] reformat command line arguments to kebab-case
Filip Schauer
f.schauer at proxmox.com
Wed Apr 3 11:49:13 CEST 2024
Signed-off-by: Filip Schauer <f.schauer at proxmox.com>
---
src/main.rs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/main.rs b/src/main.rs
index df9f49a..5423882 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -22,15 +22,15 @@ Options:
Proxmox Backup Server Fingerprint [env: PBS_FINGERPRINT=]
--keyfile <KEYFILE>
Key file
- --master_keyfile <MASTER_KEYFILE>
+ --master-keyfile <MASTER_KEYFILE>
Master key file
-c, --compress
Compress the Backup
-e, --encrypt
Encrypt the Backup
- --password_file <PASSWORD_FILE>
+ --password-file <PASSWORD_FILE>
Password file
- --key_password_file <KEY_PASSWORD_FILE>
+ --key-password-file <KEY_PASSWORD_FILE>
Key password file
-h, --help
Print help
@@ -80,7 +80,7 @@ fn parse_args() -> Result<BackupVmaToPbsArgs> {
let vmid = args.value_from_str("--vmid")?;
let fingerprint = args.opt_value_from_str("--fingerprint")?;
let keyfile = args.opt_value_from_str("--keyfile")?;
- let master_keyfile = args.opt_value_from_str("--master_keyfile")?;
+ let master_keyfile = args.opt_value_from_str("--master-keyfile")?;
let compress = args.contains(["-c", "--compress"]);
let encrypt = args.contains(["-e", "--encrypt"]);
let password_file: Option<OsString> = args.opt_value_from_str("--password-file")?;
--
2.39.2
More information about the pbs-devel
mailing list