From ab14b14c833a07445ea57ba4ca2ed6145e038172 Mon Sep 17 00:00:00 2001 From: Oleksandr Kuzmenko Date: Thu, 28 Apr 2022 15:02:07 +0300 Subject: [PATCH] CLI default threshold aligned with the API threshold --- charset_normalizer/cli/normalizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charset_normalizer/cli/normalizer.py b/charset_normalizer/cli/normalizer.py index 5f912c92..122c2cc6 100644 --- a/charset_normalizer/cli/normalizer.py +++ b/charset_normalizer/cli/normalizer.py @@ -111,7 +111,7 @@ def cli_detect(argv: List[str] = None) -> int: "-t", "--threshold", action="store", - default=0.1, + default=0.2, type=float, dest="threshold", help="Define a custom maximum amount of chaos allowed in decoded content. 0. <= chaos <= 1.",