verify: use 'cmp_pattern' from 'lib/pattern.c' to compare pattern and buffer
[fio.git] / init.c
diff --git a/init.c b/init.c
index 7261248fd4349f54f128e0656667b2eeaef10777..cdb98c57231066b5e71c7c7ce2636c7870215d15 100644 (file)
--- a/init.c
+++ b/init.c
@@ -1998,7 +1998,7 @@ static void show_closest_option(const char *name)
                i++;
        }
 
-       if (best_option != -1)
+       if (best_option != -1 && string_distance_ok(name, best_distance))
                log_err("Did you mean %s?\n", l_opts[best_option].name);
 }