summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/args.pm')
-rw-r--r--urpm/args.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index 751893ae..cc403a3f 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -243,6 +243,10 @@ my %options_spec = (
force => \$options{force},
'parallel=s' => \$options{parallel},
'env=s' => \$options{env},
+ requires => sub {
+ $urpm->{error}("option --requires is deprecated, use --requires-recursive instead");
+ $options{deps} = 1;
+ },
'requires-recursive|d' => \$options{deps},
u => \$options{upgrade},
a => \$options{all},