diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-06-19 18:29:30 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-06-19 18:29:30 +0200 |
commit | 90234c148e98ce9f7d26b37218a5f2db4c8b5858 (patch) | |
tree | 76b486aca90e827bdbdda5ccbf0ff5d003c5e9a0 /bin | |
parent | bef469bae696e0d31144ca9e7a96d7c96e9262db (diff) |
apt-why: Added --help
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/apt-why | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/apt-why b/bin/apt-why index 54dc24b..f5c2093 100755 --- a/bin/apt-why +++ b/bin/apt-why @@ -17,6 +17,7 @@ GetOptions( 'all!' => \$all, 'deptype=s' => \@deptypes, 'depth=i' => \$max_depth, + 'h|?|help' => \&usage, ); my $packagename = shift or die("No packagename given"); my @known; @@ -26,6 +27,10 @@ unless (@deptypes) { @deptypes = @default_deptypes; } +sub usage { + exec('perldoc', '-F', $0) or die("See perldoc -F $0"); +} + sub revdeps { my $name = shift; my $package = $cache->{$name}; |