X-Git-Url: https://code.th-h.de/?p=usenet%2Fnewsstats.git;a=blobdiff_plain;f=bin%2Fgatherstats.pl;h=759de6673aa7410a76abeef9d925466f03460d8b;hp=6096417ba72906b037e68456f0a1cce9c5cda826;hb=2871792120fba3b9ac9fe1b7bf166638b05766fd;hpb=23ab67a099e32a9ee8c0700fe46bc43680a60721 diff --git a/bin/gatherstats.pl b/bin/gatherstats.pl index 6096417..759de66 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'); @@ -415,7 +417,7 @@ Thomas Hochstein =head1 COPYRIGHT AND LICENSE -Copyright (c) 2010-2012 Thomas Hochstein +Copyright (c) 2010-2013 Thomas Hochstein This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.