summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-27 13:41:18 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-27 13:41:18 +0000
commit3287377583f8a651538b298d31922c3a90c020aa (patch)
tree27f697ed02bc1c3baee8fc781a40615ab7d6948b /urpm/args.pm
parentccb71299db975f235103c6e76e0e0a568fb9678c (diff)
downloadurpmi-3287377583f8a651538b298d31922c3a90c020aa.tar
urpmi-3287377583f8a651538b298d31922c3a90c020aa.tar.gz
urpmi-3287377583f8a651538b298d31922c3a90c020aa.tar.bz2
urpmi-3287377583f8a651538b298d31922c3a90c020aa.tar.xz
urpmi-3287377583f8a651538b298d31922c3a90c020aa.zip
Cope with long short urpmi options (--X versus -X)
Diffstat (limited to 'urpm/args.pm')
-rw-r--r--urpm/args.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index 3d3904f0..b7006281 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -292,6 +292,9 @@ sub parse_cmdline {
# get default values (and read config file)
# TODO
# parse options
+ if ($tool eq 'urpmi') {
+ for (@ARGV) { $_ = '-X' if $_ eq '--X' }
+ }
GetOptions(%{$options_spec{$tool}});
}