diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-08-03 03:15:26 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-08-03 03:15:26 +0000 |
commit | d369c147e6712f60725bbac2c5630a7f8113cfd3 (patch) | |
tree | fe12a9303e9c315e2237c465c62f0e209f9bceb9 | |
parent | 008330b17aaeb276f899978bf494734aec97a553 (diff) | |
download | rpmdrake-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-x | rpmdrake | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |