summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/args.pm')
-rw-r--r--urpm/args.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index e5aeec01..759db946 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -59,6 +59,16 @@ my %options_spec_all = (
my %options_spec = (
+ gurpmi => {
+ auto => sub { $urpm->{options}{auto} = 1 },
+ 'auto-select' => sub { $urpm->{options}{auto_select} = 1 },
+ 'media|mediums=s' => sub { $urpm->{options}{media} = 1 },
+ "help|h" => sub { gurpmi::usage() },
+ 'root=s' => sub { set_root($urpm, $_[1]) },
+ 'searchmedia|search-media=s' => sub { $urpm->{options}{searchmedia} = 1 },
+ 'verify-rpm!' => sub { $urpm->{options}{'verify-rpm'} = $_[1] },
+ },
+
urpmi => {
"version" => sub { require urpm; print "$tool $urpm::VERSION\n"; exit(0) },
"help|h" => sub {
@@ -338,6 +348,9 @@ my %options_spec = (
);
+$options_spec{gurpmi2} = $options_spec{gurpmi};
+
+
# generate urpmf options callbacks
sub add_urpmf_cmdline_tags {
foreach my $k (@_) {