From 554db7f6244decf32ee48b3aeb7a314b99604392 Mon Sep 17 00:00:00 2001 From: idl0r Date: Wed, 6 May 2009 18:47:02 +0000 Subject: [PATCH] Improved die message, bug 257853 thanks to Jeremy Olexa. svn path=/trunk/gentoolkit-dev/; revision=606 --- src/ekeyword/ekeyword | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ekeyword/ekeyword b/src/ekeyword/ekeyword index 002e44b..e5643c8 100755 --- a/src/ekeyword/ekeyword +++ b/src/ekeyword/ekeyword @@ -18,7 +18,10 @@ my (@kw); # make sure the cmdline consists of keywords and ebuilds unless (@ARGV > 0) { - die "syntax: ekeyword { arch | ~[arch] | -[arch] } ebuild...\n" + # NOTE: ~all will ignore all -arch keywords + print STDERR "syntax: ekeyword { arch | ~[arch] | -[arch] } ebuild...\n"; + print STDERR "instead of 'arch' you can also use 'all' which covers all existing keywords...\n"; + exit(1); } for my $a (@ARGV) { $a = '~all' if $a eq '~' or $a eq $ENV{'HOME'}; # for vapier -- 2.26.2