File help-param-513476.patch of Package whohas

## Description: Handle the --help parameter instead of assuming it is a package name.
## Origin/Author: Jonathan Wiltshire <debian@jwiltshire.org.uk>
## Bug: http://bugs.debian.org/513476
Index: whohas-0.29/program/whohas
===================================================================
--- whohas-0.29.orig/program/whohas	2012-01-15 14:39:18.213163043 -0300
+++ whohas-0.29/program/whohas	2012-01-15 14:48:37.161862163 -0300
@@ -71,12 +71,20 @@
 my @distroSelections;
 my $nothreads;
 my $shallow;
+my $option_help;
+
 GetOptions(
 	"d=s" => \@distroSelections,
 	"no-threads" => \$nothreads,
-	"shallow" => \$shallow
+	"shallow" => \$shallow,
+	"help|usage|h" => \$option_help,
 );
 
+if ($option_help) {
+	print "Usage: $0 [--no-threads] [--shallow] [-d Dist1[,Dist2[,Dist3...]]] pkgname\n";
+	exit 0;
+}
+
 if (@ARGV > 1) {
 	die "Error:\tToo many parameters. Usage: $0 [--no-threads] [--shallow] [-d Dist1[,Dist2[,Dist3...]]] pkgname\n";
 } elsif (@ARGV < 1) {
openSUSE Build Service is sponsored by