mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-09 00:00:04 +03:00
refactor: clean up arguments
This commit is contained in:
parent
a95a25dc1d
commit
428948e120
@ -3,7 +3,7 @@ use clap_complete::{generate, Generator, Shell};
|
||||
use std::io;
|
||||
|
||||
/// Generate shell completions
|
||||
#[derive(clap::Parser, Debug)]
|
||||
#[derive(Parser, Debug)]
|
||||
pub struct Cli {
|
||||
shell: Shell,
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ pub struct Cli {
|
||||
mode: Mode,
|
||||
|
||||
/// Check (fsck) the filesystem first
|
||||
#[arg(short, long, default_value_t=false)]
|
||||
#[arg(short, long)]
|
||||
fsck: bool,
|
||||
|
||||
/// Force color on/off. Default: autodetect tty
|
||||
|
@ -25,7 +25,7 @@ enum Subcommands {
|
||||
#[command(allow_missing_positional = true)]
|
||||
Snapshot {
|
||||
/// Make snapshot read only
|
||||
#[arg(long, short = 'r')]
|
||||
#[arg(long, short)]
|
||||
read_only: bool,
|
||||
source: Option<PathBuf>,
|
||||
dest: PathBuf
|
||||
|
Loading…
Reference in New Issue
Block a user