projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50d08bc
)
fix parameter parsing when pagespec is ommited, and year is present
author
Joey Hess
<joey@gnu.kitenet.net>
Thu, 15 Apr 2010 22:51:35 +0000
(18:51 -0400)
committer
Joey Hess
<joey@gnu.kitenet.net>
Thu, 15 Apr 2010 22:51:35 +0000
(18:51 -0400)
ikiwiki-calendar.in
patch
|
blob
|
history
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;