From 95e623d3dd4dbf12e391a2ef1413547358e0e353 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 10 Jan 2008 17:35:47 +0000 Subject: move the list of known tags out of urpm/args.pm into urpmf, and remove duplicated list (nb: conf_files has been added to command-line, but this won't hurt afaik) --- urpm/args.pm | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) (limited to 'urpm/args.pm') diff --git a/urpm/args.pm b/urpm/args.pm index 1b76bfe2..585166f4 100644 --- a/urpm/args.pm +++ b/urpm/args.pm @@ -326,31 +326,10 @@ my %options_spec = ( ); # generate urpmf options callbacks - -foreach my $k (qw( - arch - buildhost - buildtime - conflicts - description - distribution - epoch - filename - files - group - license - obsoletes - packager - provides - requires - size - sourcerpm - suggests - summary - url - vendor -)) { - $options_spec{urpmf}{$k} = add_param_closure($k); +sub add_urpmf_cmdline_tags { + foreach my $k (@_) { + $options_spec{urpmf}{$k} ||= add_param_closure($k); + } } # common options setup -- cgit v1.2.1