aboutsummaryrefslogtreecommitdiff
path: root/ikiwiki-calendar.in
diff options
context:
space:
mode:
Diffstat (limited to 'ikiwiki-calendar.in')
-rwxr-xr-xikiwiki-calendar.in5
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;