summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErrorNoInternet <errornointernet@envs.net>2024-02-09 17:36:49 +0800
committerErrorNoInternet <errornointernet@envs.net>2024-02-09 17:36:49 +0800
commit428948e1208995bacc5dfd86de6e8a41fb7d3238 (patch)
tree6cac0d9915f7b8ee03aa06a99b5674f35e1e0fdc
parenta95a25dc1d21ae50de150f8ea9a2d409415dbb3b (diff)
refactor: clean up arguments
-rw-r--r--src/commands/cmd_completions.rs2
-rw-r--r--src/commands/cmd_list.rs2
-rw-r--r--src/commands/cmd_subvolume.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/cmd_completions.rs b/src/commands/cmd_completions.rs
index 53cdd643..81ee719f 100644
--- a/src/commands/cmd_completions.rs
+++ b/src/commands/cmd_completions.rs
@@ -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,
}
diff --git a/src/commands/cmd_list.rs b/src/commands/cmd_list.rs
index 63eba7e9..442fdd62 100644
--- a/src/commands/cmd_list.rs
+++ b/src/commands/cmd_list.rs
@@ -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
diff --git a/src/commands/cmd_subvolume.rs b/src/commands/cmd_subvolume.rs
index a3176f40..6df8d0fc 100644
--- a/src/commands/cmd_subvolume.rs
+++ b/src/commands/cmd_subvolume.rs
@@ -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