diff options
Diffstat (limited to 'ikiwiki.in')
-rwxr-xr-x | ikiwiki.in | 7 |
1 files changed, 7 insertions, 0 deletions
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; |