* Title metadata of inlined pages now shows up in blogs, although not yet
[ikiwiki.git] / IkiWiki.pm
index b5707195b9dcf7c3dd41241fa185cf547a48850b..2face7082dc78e9be743fb65a91f29d36c56524b 100644 (file)
@@ -104,6 +104,12 @@ sub loadplugins () { #{{{
                        error("Failed to load plugin $mod: $@");
                }
        }
+       run_hooks(getopt => sub { shift->() });
+       if (grep /^-/, @ARGV) {
+               print STDERR "Unknown option: $_\n"
+                       foreach grep /^-/, @ARGV;
+               usage();
+       }
 } #}}}
 
 sub error ($) { #{{{