X-Git-Url: https://code.th-h.de/?p=usenet%2Fnewsstats.git;a=blobdiff_plain;f=bin%2Fgatherstats.pl;h=a5a486a19958c9759679a94e63c722d039f0dbf6;hb=8dc6823e988b8828454f6ef1ea2b43e3e0cc5a20;hpb=17ef44085fbed320bf056f2b700ce80ecfe92d70;ds=sidebyside diff --git a/bin/gatherstats.pl b/bin/gatherstats.pl index 6096417..a5a486a 100755 --- a/bin/gatherstats.pl +++ b/bin/gatherstats.pl @@ -73,6 +73,8 @@ $OptStatsType = 'all' if !$OptStatsType; ### get time period from --month # get verbal description of time period, drop SQL code my ($Period) = &GetTimePeriod($OptMonth); +# bail out if --month is invalid or set to 'ALL'; +# we don't support the latter &Bleat(2,"--month option has an invalid format - please use 'YYYY-MM' or ". "'YYYY-MM:YYYY-MM'!") if (!$Period or $Period eq 'all time');