From: joey Date: Sat, 4 Aug 2007 06:28:43 +0000 (+0000) Subject: * Add --set-option command line switch. X-Git-Tag: 2.6~256 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2e6bbb2bec929feda3a3ab6ce4f80a8908497ac6;p=ikiwiki.git * Add --set-option command line switch. --- 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 Sun, 29 Jul 2007 18:38:36 -0400 + -- Joey Hess 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;