From 7e6159933f098861ee2c5ce1d23465a066ff270e Mon Sep 17 00:00:00 2001 From: qwjyh Date: Sun, 17 Mar 2024 20:02:27 +0900 Subject: [PATCH] update docs to list subcmd arguments --- src/cmd_args.rs | 4 ++++ src/cmd_backup.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cmd_args.rs b/src/cmd_args.rs index 0db0217..28a41ec 100644 --- a/src/cmd_args.rs +++ b/src/cmd_args.rs @@ -161,12 +161,16 @@ pub(crate) enum BackupSubCommands { /// Print configured backups. /// Filter by src/dest storage or device. List { + /// Filter by backup source storage name. #[arg(long)] src: Option, + /// Filter by backup destination storage name. #[arg(long)] dest: Option, + /// Filter by device where the backup is configured. #[arg(long)] device: Option, + /// Long display with more information. #[arg(short, long)] long: bool, }, diff --git a/src/cmd_backup.rs b/src/cmd_backup.rs index fc2c08d..3181d3b 100644 --- a/src/cmd_backup.rs +++ b/src/cmd_backup.rs @@ -1,7 +1,7 @@ use std::{ collections::HashMap, io::{self, stdout, Write}, - path::{ PathBuf}, + path::PathBuf, }; use anyhow::{anyhow, Context, Ok, Result};