From 049b7964ab83e9dd1a008bd3bcb38d7bb351a140 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 1 Jan 2023 17:38:42 +0100 Subject: Fix opt usage --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 76808e8..fceb37f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -158,12 +158,12 @@ fn main() { std::process::exit(1); } - if cli_args.opt_str("D").is_some() { + if cli_args.opt_present("C") { eprintln!("FL2K device count {}", fl2k::get_device_count()); return; } - let output = if cli_args.opt_str("D").is_some() { + let output = if cli_args.opt_present("D") { Output::Debug } else { -- cgit v1.2.3