From: Thomas Lamprecht Date: Fri, 25 Nov 2022 10:36:30 +0000 (+0100) Subject: cli opts: use get_count for "verbose" flag X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=fa2e785d2b7783694a2d217a479ea2403f584f9d;p=pmg-log-tracker.git cli opts: use get_count for "verbose" flag Signed-off-by: Thomas Lamprecht --- diff --git a/src/main.rs b/src/main.rs index 3306577..20d8404 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2042,7 +2042,7 @@ impl Parser { self.options.exclude_greylist = args.is_present("exclude_greylist"); self.options.exclude_ndr = args.is_present("exclude_ndr"); - self.options.verbose = args.get_one::("verbose").copied().unwrap_or(0) as _; + self.options.verbose = args.get_count("verbose") as _; if let Some(string_match) = args.value_of("search") { self.options.string_match = string_match.to_string();