aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-08-03 03:15:26 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-08-03 03:15:26 +0000
commitd369c147e6712f60725bbac2c5630a7f8113cfd3 (patch)
treefe12a9303e9c315e2237c465c62f0e209f9bceb9
parent008330b17aaeb276f899978bf494734aec97a553 (diff)
downloadrpmdrake-d369c147e6712f60725bbac2c5630a7f8113cfd3.tar
rpmdrake-d369c147e6712f60725bbac2c5630a7f8113cfd3.tar.gz
rpmdrake-d369c147e6712f60725bbac2c5630a7f8113cfd3.tar.bz2
rpmdrake-d369c147e6712f60725bbac2c5630a7f8113cfd3.tar.xz
rpmdrake-d369c147e6712f60725bbac2c5630a7f8113cfd3.zip
More robustness in parsing of command-line
-rwxr-xr-xrpmdrake2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index 2ab02551..424cec97 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -22,7 +22,7 @@
BEGIN { #- we want to run this code before the Gtk->init of the use-my_gtk
my $basename = sub { local $_ = shift; s|/*\s*$||; s|.*/||; $_ };
- "@ARGV" =~ /-h/ and do {
+ grep { /^--?h/ } @ARGV and do {
printf qq(Usage: %s [OPTION]...
--no-confirmation don't ask first confirmation question in update mode
--no-verify-rpm don't verify packages signatures