summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-03-13 16:27:24 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-03-13 16:27:24 -0400
commitf10f9e6f73f07f991c21c321b6b8c870fc501fe2 (patch)
treef405a6210f65536926ec65e199b233ac049ab500
parent12432198a68c9fb391c3ec6d284fb152f0fc3d17 (diff)
unknown option wording tweak
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.
-rw-r--r--IkiWiki.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index f580d1f0d..a876bbb44 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -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();
}