[SCM] Debian package checker branch, master, updated. 2.2.18-69-gb6e16e6
The following commit has been merged in the master branch:
commit 1e8fe05f550ba1083bf05ec6ae65150e745ac3a4
Author: gregor herrmann <gregoa@debian.org>
Date: Fri Dec 25 12:09:57 2009 -0800
Add --help option to lintian-info
diff --git a/frontend/lintian-info b/frontend/lintian-info
index d8ef6c8..051934f 100755
--- a/frontend/lintian-info
+++ b/frontend/lintian-info
@@ -41,11 +41,26 @@ use Text_utils;
my %already_displayed = ();
-my ($annotate, $tags);
+my ($annotate, $tags, $help);
Getopt::Long::config('bundling', 'no_getopt_compat', 'no_auto_abbrev');
-GetOptions('annotate|a' => \$annotate, 'tags|t' => \$tags)
+GetOptions('annotate|a' => \$annotate, 'tags|t' => \$tags, 'help|h' => \$help)
or die("error parsing options\n");
+# help
+if ($help) {
+ print <<"EOT";
+Usage: lintian-info [log-file...] ...
+ lintian-info --tags tag ...
+
+Options:
+ -a, --annotate display verbose information about provided Lintian overrides
+ -t, --tags display tag descriptions
+EOT
+
+ exit 0;
+}
+
+
# If tag mode was specified, read the arguments as tags and display the
# descriptions for each one. (We don't currently display the severity,
# although that would be nice.)
--
Debian package checker
Reply to: