projects
/
ikiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
responses
[ikiwiki.git]
/
ikiwiki-calendar.in
diff --git
a/ikiwiki-calendar.in
b/ikiwiki-calendar.in
index cdfecff3f3a41e2c5c2ff3d2ef9230eb1453d6df..04352b97050905dfd853a3a1b64228137e12dc69 100755
(executable)
--- 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;