diff options
-rw-r--r-- | debian/changelog | 3 | ||||
-rwxr-xr-x | ikiwiki.in | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 3522d4a9b..a523b8913 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 diff --git a/ikiwiki.in b/ikiwiki.in index fd864e0d8..c37085bbc 100755 --- a/ikiwiki.in +++ b/ikiwiki.in @@ -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; |