From 477dc5444d7137ea56f42b2695fcfd7e8d7647d6 Mon Sep 17 00:00:00 2001 From: keno Date: Sat, 31 Dec 2022 10:07:14 +0900 Subject: [PATCH] fix: Clap error in examples/timestamp Currently, examples/timestamp raises runtime error by violation of constraints of clap. `Arg::multiple()` is deprecated in clap 3.* [1]. This PR uses `Arg::multiple_occurrences()` instead and fixes the error. [1] https://docs.rs/clap/3.0.0/clap/struct.Arg.html#method.multiple --- examples/timestamp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/timestamp.rs b/examples/timestamp.rs index d8f139be..676bdc70 100644 --- a/examples/timestamp.rs +++ b/examples/timestamp.rs @@ -7,7 +7,7 @@ fn main() { .arg( Arg::with_name("verbosity") .short('v') - .multiple(true) + .multiple_occurrences(true) .help("Increase message verbosity"), ) .arg(