diff --git a/src/main.rs b/src/main.rs index c70f39da..e9969f50 100644 --- a/src/main.rs +++ b/src/main.rs @@ -661,6 +661,7 @@ fn get_setup() -> Setup { let opt = key.trim_start_matches('-'); if index > 0 + && key.starts_with('-') && &args[index - 1] != key && matches.opt_defined(opt) && matches.opt_present(opt)