]> git.sesse.net Git - bcachefs-tools-debian/commitdiff
refactor: clean up arguments
authorErrorNoInternet <errornointernet@envs.net>
Fri, 9 Feb 2024 09:36:49 +0000 (17:36 +0800)
committerErrorNoInternet <errornointernet@envs.net>
Fri, 9 Feb 2024 09:36:49 +0000 (17:36 +0800)
src/commands/cmd_completions.rs
src/commands/cmd_list.rs
src/commands/cmd_subvolume.rs

index 53cdd643d16366d459b06f3a535a7dbdcd31e037..81ee719f6c22dcdeae90256b2dd00c201750b227 100644 (file)
@@ -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,
 }
index 63eba7e975127e685dc7aac5c137c65f9c1f4db5..442fdd62fe958cd30007ab2a05cee1653790b1c5 100644 (file)
@@ -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
index a3176f406c121935e29c47a512709cc0cda07a98..6df8d0fcb5b9b2989adffcfe1ef3bd0f8594077b 100644 (file)
@@ -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