]> sipb.mit.edu Git - ikiwiki.git/blobdiff - ikiwiki.in
include bugs tagged patch
[ikiwiki.git] / ikiwiki.in
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;