]> sipb.mit.edu Git - ikiwiki.git/commitdiff
unknown option wording tweak
authorJoey Hess <joey@gnu.kitenet.net>
Fri, 13 Mar 2009 20:27:24 +0000 (16:27 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Fri, 13 Mar 2009 20:27:24 +0000 (16:27 -0400)
Because getopt::long is used in passthrough mode, if a known
option like --wikiname that needs a parameter is specified w/o
the parameter, it will not be processed, and passed on through.
So in this case the "unknown option" message is innaccurate.
Make it slightly better by noting that the problem can be a missing
parameter.

IkiWiki.pm

index f580d1f0d008fea8aec829914d1bdeca4bf5217f..a876bbb445353ac254d0b872709754289106077e 100644 (file)
@@ -533,7 +533,7 @@ sub loadplugins () {
 
        run_hooks(getopt => sub { shift->() });
        if (grep /^-/, @ARGV) {
-               print STDERR "Unknown option: $_\n"
+               print STDERR "Unknown option (or missing parameter): $_\n"
                        foreach grep /^-/, @ARGV;
                usage();
        }