diff options
Diffstat (limited to 'ikiwiki-calendar.in')
-rwxr-xr-x | ikiwiki-calendar.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ikiwiki-calendar.in b/ikiwiki-calendar.in index cdfecff3f..04352b970 100755 --- a/ikiwiki-calendar.in +++ b/ikiwiki-calendar.in @@ -15,7 +15,10 @@ GetOptions( "force" => \$force, ) || usage(); my $setup=shift || usage(); -my $pagespec=shift; +my $pagespec; +if (@ARGV && $ARGV[0] !~ /^\d+$/) { + $pagespec=shift; +} my $startyear=shift || 1900+(localtime(time))[5]; my $endyear=shift || $startyear; |