Ver Fonte

bin/tau: fix deprecated from_occurrences to action = Count

Dastan-glitch há 3 anos atrás
pai
commit
db071de0e9
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      bin/tau/tau-cli/src/main.rs

+ 1 - 1
bin/tau/tau-cli/src/main.rs

@@ -48,7 +48,7 @@ const DEFAULT_PATH: &str = "~/tau_exported_tasks";
 #[clap(name = "tau", version)]
 #[clap(subcommand_precedence_over_arg = true)]
 struct Args {
-    #[clap(short, parse(from_occurrences))]
+    #[arg(short, action = clap::ArgAction::Count)]
     /// Increase verbosity (-vvv supported)
     verbose: u8,