From 5f5da90bacbd4a5e32da696244e0de436e264133 Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Wed, 2 Sep 2020 18:20:46 -0700 Subject: [PATCH] avoid repeated error messages on bad -kgb input --- lib/Perl/Tidy/Formatter.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Perl/Tidy/Formatter.pm b/lib/Perl/Tidy/Formatter.pm index 48ec1c01..df103c54 100644 --- a/lib/Perl/Tidy/Formatter.pm +++ b/lib/Perl/Tidy/Formatter.pm @@ -900,6 +900,9 @@ sub keyword_group_scan { Unexpected value for -kgbs: '$Opt_size'; expecting 'min' or 'min.max'; ignoring all -kgb flags EOM + # Turn this option off so that this message does not keep repeating + # during iterations and other files. + $rOpts->{'keyword-group-blanks-size'} = ""; return $rhash_of_desires; } $Opt_size_min = 1 unless ($Opt_size_min); -- 2.39.5