Explorar el Código

bin/tau: fix deprecated from_occurrences to action = Count

Dastan-glitch hace 3 años
padre
commit
db071de0e9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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,