Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:Update
whohas
help-param-513476.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
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) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor