summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-06-22 07:44:59 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-06-22 07:44:59 +0200
commit0f9fb54796d48eb8767aaa1bcc9f80861fe252b2 (patch)
treeeae225fe081ce61f6f097218277db2f9e2d1699a /bin
parentfb2c445922ec8e1bdb43ffc8a6592eafad5dfc90 (diff)
apt-why: --deptype: Don't shift around
Diffstat (limited to 'bin')
-rwxr-xr-xbin/apt-why2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/apt-why b/bin/apt-why
index 69802bf..20abd5c 100755
--- a/bin/apt-why
+++ b/bin/apt-why
@@ -14,7 +14,7 @@ my $all = 0;
my @deptypes = ('Depends', 'Recommends', 'Suggests');
GetOptions(
'all!' => \$all,
- 'deptype=s' => sub {shift; @deptypes = split(/,/, shift)},
+ 'deptype=s' => sub {@deptypes = split(/,/, $_[1])},
'depth=i' => \$max_depth,
'h|?|help' => \&usage,
);