From 2ec059361e9550b99527e9ace7ebc11bd3624611 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 d8f139b..676bdc7 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(