Add -h option to keyanalyze, and update manpage. (Closes: #370570)
authormyon <myon@b513b33f-fedd-0310-b452-c3deb5f4c849>
Fri, 18 Jul 2008 13:42:10 +0000 (13:42 +0000)
committermyon <myon@b513b33f-fedd-0310-b452-c3deb5f4c849>
Fri, 18 Jul 2008 13:42:10 +0000 (13:42 +0000)
git-svn-id: svn://svn.debian.org/pgp-tools/trunk@391 b513b33f-fedd-0310-b452-c3deb5f4c849

debian/changelog
keyanalyze/keyanalyze.1
keyanalyze/keyanalyze.c

index 7c2cbbda097aea1091e176169b82caa2c5b9a761..542f8034dc715489f5fcb440755c2d5d6875f703 100644 (file)
@@ -11,11 +11,12 @@ signing-party (1.1-1) UNRELEASED; urgency=low
       (Closes: #309101)
     + Update config.{sub,guess}. (Closes: #365148)
     + Add patch by Stephan Beyer to improve process_keys' input parsing,
-      remedying to need of weird grep and sed commands. (Closes: #370571)
+      remedying the need of weird grep and sed commands. (Closes: #370571)
+    + Add -h option to keyanalyze, and update manpage. (Closes: #370570)
   * Put examples in .../examples/$prog, not the other way round.
   * Use dh_lintian.
 
- -- Christoph Berg <myon@debian.org>  Fri, 18 Jul 2008 15:30:06 +0200
+ -- Christoph Berg <myon@debian.org>  Fri, 18 Jul 2008 15:41:28 +0200
 
 signing-party (1.0-2) unstable; urgency=low
 
index c162b2811fafe25d8fca70efa569114829bc4184..d2fdba208dfc7aaf9d31902636bc6d382bdeffb1 100644 (file)
@@ -12,7 +12,7 @@
 keyanalyze \- Web of Trust analysis
 
 .SH SYNTAX
-\fBkeyanalyze\fP [ \fB\-i\fP \fIinfile\fP ] [ \fB\-o\fP \fIoutdir\fP ] [ \fB\-1\fP ]
+\fBkeyanalyze\fP [ \fB\-h1\fP ] [ \fB\-i\fP \fIinfile\fP ] [ \fB\-o\fP \fIoutdir\fP ]
 
 .SH DESCRIPTION
 \fIkeyanalyze\fP analyses the web of trust within a group of keys.  It
@@ -20,6 +20,10 @@ takes preprocessed keys as input (see
 .BR process_keys (1))
 and produces an output directory full of statistics about the keys.
 
+Usually called like
+ $ pgpring -S -k ./keyring.gpg | process_keys > preprocess.keys
+ $ keyanalyze
+
 .SH OPTIONS
 .TP
 .BI \-i " infile"
@@ -29,6 +33,9 @@ Read from \fIinfile\fP instead of \fBpreprocess.keys\fP.
 Put the results in \fIoutdir\fP instead of \fBoutput/\fP.  The directory
 will be created if it does not already exist.
 .TP
+.BI \-h
+Print help.
+.TP
 .BI \-1
 Per default, \fBkeyanalyze\fP writes the output into subdirectories named after
 the first two characters of the key ID. This options disables this; useful for
index 91d19a540605c7a3489f53c015db6cd302200dca..3a4aa45bce6966fce2c0dc650bc9c2b74b38e2fe 100644 (file)
@@ -293,10 +293,14 @@ void ParseArgs(int argc, char **argv)
        int outdirlen;
 
        while (1) {
-               int option = getopt(argc, argv, "i:o:1");
+               int option = getopt(argc, argv, "hi:o:1");
                if (option == -1)
                        break;
                switch (option) {
+               case 'h':
+                       printf ("Usage: %s [-h1] [-i infile] [-o outdir]\n", argv[0]);
+                       exit (0);
+                       break;
                case 'i':
                        infile = optarg;
                        break;