]> sipb.mit.edu Git - ikiwiki.git/commitdiff
* Add --set-option command line switch.
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 4 Aug 2007 06:28:43 +0000 (06:28 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 4 Aug 2007 06:28:43 +0000 (06:28 +0000)
debian/changelog
ikiwiki.in

index 3522d4a9b6984d08c0119343bf36dbf54a9b78ed..a523b8913c9329a4ee90ef9d08785d1ae21afd96 100644 (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
 
index fd864e0d82a78a96c5377fc8b18fc26edc7d722c..c37085bbc1a3884aeda085a7f138f2f8bf11ce6c 100755 (executable)
@@ -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;