mirror of
https://github.com/qwjyh/xdbm
synced 2024-11-24 23:51:04 +09:00
update docs to list subcmd arguments
This commit is contained in:
parent
4c0da32998
commit
7e6159933f
2 changed files with 5 additions and 1 deletions
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
|
@ -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};
|
||||||
|
|
Loading…
Reference in a new issue