* Add --set-option command line switch.

master
joey 2007-08-04 06:28:43 +00:00
parent 3a1e6dcb24
commit 2e6bbb2bec
2 changed files with 9 additions and 1 deletions

3
debian/changelog vendored
View File

@ -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

View File

@ -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;