aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch.c
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-10-26 09:13:19 -0700
committerGravatar Carl Worth <cworth@cworth.org>2009-10-26 14:02:51 -0700
commit3dce2007887717ec4ec0a1e815591c957acd1ba1 (patch)
tree66a93d1df69c8789c8a9fe25eb396b0fc6a81800 /notmuch.c
parent46ba33b1159fb48b8360ddae72492cc3162dc999 (diff)
tags: Re-implement tags iterator to avoid having C++ in the interface
We want to be able to iterate over tags stored in various ways, so the previous TermIterator-based tags object just wasn't general enough. The new interface is nice and simple, and involves only C datatypes.
Diffstat (limited to 'notmuch.c')
-rw-r--r--notmuch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/notmuch.c b/notmuch.c
index e2347524..cc53d1d6 100644
--- 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;
}