update docs to list subcmd arguments

This commit is contained in:
qwjyh 2024-03-17 20:02:27 +09:00
parent 4c0da32998
commit 7e6159933f
2 changed files with 5 additions and 1 deletions

View file

@ -161,12 +161,16 @@ pub(crate) enum BackupSubCommands {
/// Print configured backups. /// Print configured backups.
/// Filter by src/dest storage or device. /// Filter by src/dest storage or device.
List { List {
/// Filter by backup source storage name.
#[arg(long)] #[arg(long)]
src: Option<String>, src: Option<String>,
/// Filter by backup destination storage name.
#[arg(long)] #[arg(long)]
dest: Option<String>, dest: Option<String>,
/// Filter by device where the backup is configured.
#[arg(long)] #[arg(long)]
device: Option<String>, device: Option<String>,
/// Long display with more information.
#[arg(short, long)] #[arg(short, long)]
long: bool, long: bool,
}, },

View file

@ -1,7 +1,7 @@
use std::{ use std::{
collections::HashMap, collections::HashMap,
io::{self, stdout, Write}, io::{self, stdout, Write},
path::{ PathBuf}, path::PathBuf,
}; };
use anyhow::{anyhow, Context, Ok, Result}; use anyhow::{anyhow, Context, Ok, Result};