summaryrefslogtreecommitdiff
path: root/usr.bin/libtool
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2012-06-27 10:33:52 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2012-06-27 10:33:52 +0000
commit3aae1be7bab7a6e66389e917d7e27178855ba222 (patch)
tree380c074550c252f09021cad84337a30349d4d0b4 /usr.bin/libtool
parent098423a085be37cf16ebd3f7df3f10f1a7b68366 (diff)
- extend an error message to hint to --help for a list of options
ok espie@
Diffstat (limited to 'usr.bin/libtool')
-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 = ();