X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/b0e7e2e123079a2e68924cfb90d19c44571b1f65..0f45548333c19d33d885b4417fa85285d74f87cf:/ikiwiki diff --git a/ikiwiki b/ikiwiki index f32eb4879..58f6af4ba 100755 --- a/ikiwiki +++ b/ikiwiki @@ -15,12 +15,14 @@ sub getconfig () { #{{{ if (! exists $ENV{WRAPPED_OPTIONS}) { %config=defaultconfig(); eval q{use Getopt::Long}; + Getopt::Long::Configure('pass_through'); GetOptions( "setup|s=s" => \$config{setup}, "wikiname=s" => \$config{wikiname}, "verbose|v!" => \$config{verbose}, "rebuild!" => \$config{rebuild}, "refresh!" => \$config{refresh}, + "wrappers!" => \$config{wrappers}, "getctime" => \$config{getctime}, "wrappermode=i" => \$config{wrappermode}, "rcs=s" => \$config{rcs}, @@ -29,6 +31,7 @@ sub getconfig () { #{{{ "rss!" => \$config{rss}, "cgi!" => \$config{cgi}, "discussion!" => \$config{discussion}, + "w3mmode!" => \$config{w3mmode}, "notify!" => \$config{notify}, "url=s" => \$config{url}, "cgiurl=s" => \$config{cgiurl}, @@ -57,7 +60,7 @@ sub getconfig () { #{{{ push @{$config{plugin}}, $_[1]; }, "disable-plugin=s@" => sub { - $config{plugin}=[grep { $_ ne $_[1] } @{$config{plugin}} ]; + $config{plugin}=[grep { $_ ne $_[1] } @{$config{plugin}}]; }, "pingurl" => sub { push @{$config{pingurl}}, $_[1]; @@ -65,6 +68,7 @@ sub getconfig () { #{{{ ) || usage(); if (! $config{setup}) { + loadplugins(); usage() unless @ARGV == 2; $config{srcdir} = possibly_foolish_untaint(shift @ARGV); $config{destdir} = possibly_foolish_untaint(shift @ARGV); @@ -78,6 +82,7 @@ sub getconfig () { #{{{ if ($@) { error("WRAPPED_OPTIONS: $@"); } + loadplugins(); checkconfig(); } } #}}}