Add -h option to keyanalyze, and update manpage. (Closes: #370570)
[pgp-tools.git] / keyanalyze / keyanalyze.c
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;