]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-count.c
cli: add global option "--uuid"
[notmuch] / notmuch-count.c
index 182710a67b0e8f61867860c6c7ad0c807ce7fb84..f26e726ae06b83c768e18d4f5309d7d77010c659 100644 (file)
@@ -189,6 +189,8 @@ notmuch_count_command (notmuch_config_t *config, int argc, char *argv[])
                               NOTMUCH_DATABASE_MODE_READ_ONLY, &notmuch))
        return EXIT_FAILURE;
 
+    notmuch_exit_if_unmatched_db_uuid (notmuch);
+
     query_str = query_string_from_args (config, argc-opt_index, argv+opt_index);
     if (query_str == NULL) {
        fprintf (stderr, "Out of memory.\n");