summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjasper <jasper@openbsd.org>2012-06-27 10:33:51 +0000
committerjasper <jasper@openbsd.org>2012-06-27 10:33:51 +0000
commit3ed94911f4fff3ef8ec8bf67be14c0c34a9aaa48 (patch)
tree6d9a2a672b7f82bac219ac46de13ebc03c8b24d8
parent- add a description of --tag (diff)
downloadwireguard-openbsd-3ed94911f4fff3ef8ec8bf67be14c0c34a9aaa48.tar.xz
wireguard-openbsd-3ed94911f4fff3ef8ec8bf67be14c0c34a9aaa48.zip
- extend an error message to hint to --help for a list of options
ok espie@
-rwxr-xr-xusr.bin/libtool/libtool5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/libtool/libtool b/usr.bin/libtool/libtool
index ee32dd38f5b..0de0db4d981 100755
--- a/usr.bin/libtool/libtool
+++ b/usr.bin/libtool/libtool
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-# $OpenBSD: libtool,v 1.5 2012/06/27 09:34:09 jasper Exp $
+# $OpenBSD: libtool,v 1.6 2012/06/27 10:33:51 jasper Exp $
# Copyright (c) 2007-2010 Steven Mestdagh <steven@openbsd.org>
#
@@ -120,7 +120,8 @@ while (@ARGV) {
if ($arg =~ /install([-.]sh)?$/) { last; }
}
LT::Trace::debug {"ltprog = \"@$ltprog\"\n"};
-if (@$ltprog == 0) { die "No libtool command given.\n" };
+if (@$ltprog == 0) { die "No libtool command given.\n" .
+ "Use `libtool --help' for more information.\n" };
# make ltprog a list of elements without whitespace (prevent exec errors)
my @tmp_ltprog = @$ltprog;
@$ltprog = ();