summaryrefslogtreecommitdiffstats
path: root/scripts/dpkg-buildapi.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dpkg-buildapi.pl')
-rwxr-xr-xscripts/dpkg-buildapi.pl10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/dpkg-buildapi.pl b/scripts/dpkg-buildapi.pl
index b34bcf5..2981eeb 100755
--- a/scripts/dpkg-buildapi.pl
+++ b/scripts/dpkg-buildapi.pl
@@ -36,12 +36,14 @@ sub version()
sub usage()
{
printf g_(
-'Usage: %s [<option>...]')
+'Usage: %s [<option>...] [<command>]')
+ . "\n\n" . g_(
+'Commands:
+ -?, --help show this help message.
+ --version show the version.')
. "\n\n" . g_(
'Options:
-c<control-file> get control info from this file.
- -?, --help show this help message.
- -v, --version show the version.
'), $Dpkg::PROGNAME;
}
@@ -52,7 +54,7 @@ while (@ARGV) {
if (m/^-\?|--help$/) {
usage();
exit 0;
- } elsif (m/^-v|--version$/) {
+ } elsif (m/^--version$/) {
version();
exit 0;
} elsif (m/-c(.*)$/) {