]> git.donarmstrong.com Git - perltidy.git/commitdiff
avoid repeated error messages on bad -kgb input
authorSteve Hancock <perltidy@users.sourceforge.net>
Thu, 3 Sep 2020 01:20:46 +0000 (18:20 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Thu, 3 Sep 2020 01:20:46 +0000 (18:20 -0700)
lib/Perl/Tidy/Formatter.pm

index 48ec1c0142c13e0257cbc8720ef5bfa44f10dcf0..df103c54ce832520bb5541d4cecf87e13c1beea8 100644 (file)
@@ -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);