* Add --set-option command line switch.
parent
3a1e6dcb24
commit
2e6bbb2bec
|
@ -5,8 +5,9 @@ ikiwiki (2.6) UNRELEASED; urgency=low
|
|||
* Fix problems with previewing in the graphviz plugin. Thanks,
|
||||
HenrikBrixAndersen.
|
||||
* Allow raw html in the rst plugin.
|
||||
* Add --set-option command line switch.
|
||||
|
||||
-- Joey Hess <joeyh@debian.org> Sun, 29 Jul 2007 18:38:36 -0400
|
||||
-- Joey Hess <joeyh@debian.org> Fri, 03 Aug 2007 20:33:43 -0700
|
||||
|
||||
ikiwiki (2.5) unstable; urgency=low
|
||||
|
||||
|
|
|
@ -75,6 +75,13 @@ sub getconfig () { #{{{
|
|||
"pingurl=s" => sub {
|
||||
push @{$config{pingurl}}, $_[1];
|
||||
},
|
||||
"set=s" => sub {
|
||||
my ($var, $val)=split('=', $_[1], 2);
|
||||
if (! defined $var || ! defined $val) {
|
||||
die gettext("usage: --set var=value"), "\n";
|
||||
}
|
||||
$config{$var}=$val;
|
||||
},
|
||||
"version" => sub {
|
||||
print "ikiwiki version $IkiWiki::version\n";
|
||||
exit;
|
||||
|
|
Loading…
Reference in New Issue