]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch.c
tags: Re-implement tags iterator to avoid having C++ in the interface
[notmuch] / notmuch.c
index e2347524506192b892bfd578faa2e5ed55d575b1..cc53d1d61644699a003cdcac71281eff1cc0cb60 100644 (file)
--- a/notmuch.c
+++ b/notmuch.c
@@ -924,11 +924,11 @@ main (int argc, char *argv[])
        strcmp (argv[1], "--help") == 0)
     {
        fprintf (stderr, "The notmuch mail system.\n\n");
+       usage ();
+       return 0;
     } else {
        fprintf (stderr, "Error: Unknown command '%s'\n\n", argv[1]);
+       usage ();
+       return 1;
     }
-    usage ();
-    exit (1);
-
-    return 0;
 }