allow hooks to add options even to --setup
[ikiwiki.git] / ikiwiki
diff --git a/ikiwiki b/ikiwiki
index 6518b8626a943c24fa2947946c98b116d056d167..58f6af4ba521b460377f94a74742d3f424862ee4 100755 (executable)
--- a/ikiwiki
+++ b/ikiwiki
@@ -69,12 +69,6 @@ sub getconfig () { #{{{
 
                if (! $config{setup}) {
                        loadplugins();
-                       run_hooks(getopt => sub { shift->() });
-                       if (grep /^-/, @ARGV) {
-                               print STDERR "Unknown option: $_\n"
-                                       foreach grep /^-/, @ARGV;
-                               usage();
-                       }
                        usage() unless @ARGV == 2;
                        $config{srcdir} = possibly_foolish_untaint(shift @ARGV);
                        $config{destdir} = possibly_foolish_untaint(shift @ARGV);