summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/args.pm')
-rw-r--r--urpm/args.pm10
1 files changed, 7 insertions, 3 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index 4e8440e2..9fe53476 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -97,9 +97,13 @@ my %options_spec = (
},
'proxy-user=s' => sub {
my (undef, $value) = @_;
- $value =~ /(.+):(.+)/ or die N("bad proxy declaration on command line\n");
- @{$urpm->{proxy}}{qw(user pwd)} = ($1, $2); #- obsolete, for compat
- urpm::download::set_cmdline_proxy(user => $1, pwd => $2);
+ if ($value eq 'ask') { #- should prompt for user/password
+ urpm::download::set_cmdline_proxy(ask => 1);
+ } else {
+ $value =~ /(.+):(.+)/ or die N("bad proxy declaration on command line\n");
+ @{$urpm->{proxy}}{qw(user pwd)} = ($1, $2); #- obsolete, for compat
+ urpm::download::set_cmdline_proxy(user => $1, pwd => $2);
+ }
},
'bug=s' => \$options{bug},
'env=s' => \$::env,