aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files 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 {