]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - onak.c
cscvs to tla changeset 54
[onak.git] / onak.c
diff --git a/onak.c b/onak.c
index 90c6926c95d7fb1db15ad18cbaff91d4aad4f808..07e01a591db64a940497c1bde6e7e0dd3df31adf 100644 (file)
--- a/onak.c
+++ b/onak.c
@@ -96,13 +96,17 @@ int main(int argc, char *argv[])
        bool                             verbose = false;
        bool                             update = false;
        bool                             binary = false;
        bool                             verbose = false;
        bool                             update = false;
        bool                             binary = false;
+       bool                             fingerprint = false;
        int                              optchar;
 
        int                              optchar;
 
-       while ((optchar = getopt(argc, argv, "buv")) != -1 ) {
+       while ((optchar = getopt(argc, argv, "bfuv")) != -1 ) {
                switch (optchar) {
                case 'b': 
                        binary = true;
                        break;
                switch (optchar) {
                case 'b': 
                        binary = true;
                        break;
+               case 'f': 
+                       fingerprint = true;
+                       break;
                case 'u': 
                        update = true;
                        break;
                case 'u': 
                        update = true;
                        break;
@@ -174,9 +178,11 @@ int main(int argc, char *argv[])
                }
                initdb();
                if (!strcmp("index", argv[optind])) {
                }
                initdb();
                if (!strcmp("index", argv[optind])) {
-                       find_keys(search, keyid, ishex, false, false, false);
+                       find_keys(search, keyid, ishex, fingerprint,
+                                       false, false);
                } else if (!strcmp("vindex", argv[optind])) {
                } else if (!strcmp("vindex", argv[optind])) {
-                       find_keys(search, keyid, ishex, false, false, true);
+                       find_keys(search, keyid, ishex, fingerprint,
+                                       false, true);
                } else if (!strcmp("delete", argv[optind])) {
                        delete_key(getfullkeyid(keyid), false);
                } else if (!strcmp("get", argv[optind])) {
                } else if (!strcmp("delete", argv[optind])) {
                        delete_key(getfullkeyid(keyid), false);
                } else if (!strcmp("get", argv[optind])) {