From 046f4775d1a5a719cdea1e4d3cbc5a0bd081bcc4 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 1 Oct 2001 16:45:34 +0000 Subject: fix option parsing (to allow "urpme kernel-headers") --- urpme | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'urpme') diff --git a/urpme b/urpme index 6cda84e9..85394743 100644 --- a/urpme +++ b/urpme @@ -16,12 +16,12 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -local $_ = join '', @ARGV; +local $_ = ' ' . join(' ', @ARGV) . ' '; -/-h/ || @ARGV == 0 and die "usage: urpme [-a] [--auto] \n"; +/ --?h/ || @ARGV == 0 and die "usage: urpme [-a] [--auto] \n"; -$matches = /-a/; -$auto = /-auto/; +$matches = / -a /; +$auto = / --?auto /; my $DIR = "/var/lib/urpmi"; -- cgit v1.2.1