Sfoglia il codice sorgente

dpkg-checkbuilddeps: Recognize --help in addition to -h

Guillem Jover 16 anni fa
parent
commit
c1fc5612e4
3 ha cambiato i file con 5 aggiunte e 4 eliminazioni
  1. 1 0
      debian/changelog
  2. 2 2
      man/dpkg-checkbuilddeps.1
  3. 2 2
      scripts/dpkg-checkbuilddeps.pl

+ 1 - 0
debian/changelog

@@ -6,6 +6,7 @@ dpkg (1.15.6) UNRELEASED; urgency=low
   [ Guillem Jover ]
   * Handle argument parsing in dpkg-checkbuilddeps and dpkg-scanpackages
     in a way consistent with the rest of the tools.
+  * Recognize --help in addition to -h in dpkg-checkbuilddeps.
 
   [ Updated man page translations ]
   * Swedish (Peter Krefting).

+ 2 - 2
man/dpkg-checkbuilddeps.1

@@ -1,4 +1,4 @@
-.TH dpkg\-checkbuilddeps 1 "2008-08-18" "Debian Project" "dpkg utilities"
+.TH dpkg\-checkbuilddeps 1 "2009-11-21" "Debian Project" "dpkg utilities"
 .SH NAME
 dpkg\-checkbuilddeps \- check build dependencies and conflicts
 .
@@ -31,7 +31,7 @@ be built.
 Use the given build dependencies/conflicts instead of those contained in the
 \fIdebian/control\fP file.
 .TP
-.B \-h
+.BR \-h ", " \-\-help
 Show the usage message and exit.
 .
 .SH AUTHOR

+ 2 - 2
scripts/dpkg-checkbuilddeps.pl

@@ -44,7 +44,7 @@ Options:
                  retrieving them from control file
   --admindir=<directory>
                  change the administrative directory.
-  -h             show this help message.
+  -h, --help     show this help message.
 "), $progname;
 }
 
@@ -52,7 +52,7 @@ my $binary_only=0;
 my $want_help=0;
 my ($bd_value, $bc_value);
 if (!GetOptions('B' => \$binary_only,
-                'h' => \$want_help,
+                'help|h' => \$want_help,
                 'd=s' => \$bd_value,
                 'c=s' => \$bc_value,
                 'admindir=s' => \$admindir)) {