소스 검색

bin/tau: fix deprecated from_occurrences to action = Count

Dastan-glitch 3 년 전
부모
커밋
db071de0e9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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,