diff options
Diffstat (limited to 'urpm/args.pm')
-rw-r--r-- | urpm/args.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/urpm/args.pm b/urpm/args.pm index 56b744f2..751893ae 100644 --- a/urpm/args.pm +++ b/urpm/args.pm @@ -251,8 +251,12 @@ my %options_spec = ( g => \$options{group}, 'whatprovides|p' => \$options{use_provides}, P => sub { $options{use_provides} = 0 }, - 'whatrequires|R' => sub { $options{what_requires} and $options{what_requires_recursive} = 1; - $options{what_requires} = 1 }, + R => sub { $urpm->{error}($options{what_requires} ? + "option -RR is deprecated, use --whatrequires-recursive instead" : + "option -R is deprecated, use --whatrequires instead"); + $options{what_requires} and $options{what_requires_recursive} = 1; + $options{what_requires} = 1 }, + whatrequires => sub { $options{what_requires} = 1 }, 'whatrequires-recursive' => sub { $options{what_requires_recursive} = $options{what_requires} = 1 }, y => sub { $urpm->{options}{fuzzy} = 1; $options{all} = 1 }, Y => sub { $urpm->{options}{fuzzy} = 1; $options{all} = $options{caseinsensitive} = 1 }, |