diff options
author | Jani Nikula <jani@nikula.org> | 2011-11-15 22:08:51 +0200 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2011-11-15 19:20:27 -0400 |
commit | 386ad3d6a1a4aff086a87c04c225aba4fa85fb4c (patch) | |
tree | 6d58875aa6d92a7a45d0eac278834ce822c98df4 /notmuch.c | |
parent | e7328d7b006cc54d2cff249a601b114ee341b1db (diff) |
cli: add support for --output parameter in notmuch count
Add support for --output=messages (which remains the default) and
--output=threads to notmuch count.
Signed-off-by: Jani Nikula <jani@nikula.org>
Diffstat (limited to 'notmuch.c')
-rw-r--r-- | notmuch.c | 20 |
1 files changed, 16 insertions, 4 deletions
@@ -328,12 +328,24 @@ static command_t commands[] = { "\tSee \"notmuch help search-terms\" for details of the search\n" "\tterms syntax." }, { "count", notmuch_count_command, - "<search-terms> [...]", + "[options...] <search-terms> [...]", "Count messages matching the search terms.", - "\tThe number of matching messages is output to stdout.\n" + "\tThe number of matching messages (or threads) is output to stdout.\n" + "\n" + "\tWith no search terms, a count of all messages (or threads) in\n" + "\tthe database will be displayed.\n" + "\n" + "\tSupported options for count include:\n" + "\n" + "\t--output=(messages|threads)\n" + "\n" + "\t\tmessages (default)\n" + "\n" + "\t\tOutput the number of matching messages.\n" + "\n" + "\t\tthreads\n" "\n" - "\tWith no search terms, a count of all messages in the database\n" - "\twill be displayed.\n" + "\t\tOutput the number of matching threads.\n" "\n" "\tSee \"notmuch help search-terms\" for details of the search\n" "\tterms syntax." }, |