]> git.proxmox.com Git - pmg-log-tracker.git/commitdiff
cli opts: use get_count for "verbose" flag
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 25 Nov 2022 10:36:30 +0000 (11:36 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 25 Nov 2022 10:36:30 +0000 (11:36 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/main.rs

index 3306577c32b0f5a952099dcd280cbb67cf32cb6b..20d84048f62995ed065b49d5039379bc485405aa 100644 (file)
@@ -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::<u8>("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();