From 0ca4dfd05cd4f17e46ce3f6d0e4fbeff73a8fd7e Mon Sep 17 00:00:00 2001 From: Oleksandr Kuzmenko Date: Sun, 1 May 2022 21:37:38 +0300 Subject: [PATCH] CLI default threshold aligned with the API threshold (#181) --- 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.",