diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-08-04 06:28:43 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-08-04 06:28:43 +0000 |
commit | 2e6bbb2bec929feda3a3ab6ce4f80a8908497ac6 (patch) | |
tree | 67067113e804c538939c7c0a8a8c1c308ef13de3 | |
parent | 3a1e6dcb242f4905217028fedea0d96de8960062 (diff) | |
download | ikiwiki-2e6bbb2bec929feda3a3ab6ce4f80a8908497ac6.tar ikiwiki-2e6bbb2bec929feda3a3ab6ce4f80a8908497ac6.tar.gz |
* Add --set-option command line switch.
-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; |