diff options
| author | Tomi Ollila <tomi.ollila@iki.fi> | 2014-11-07 20:31:50 +0200 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2014-11-09 10:09:51 +0100 |
| commit | 0d8251dbe236975e69b07de2aeb9b60df44d6929 (patch) | |
| tree | 58c26f822086eb038e7a402b48728413652dd891 /notmuch-search.c | |
| parent | 8e3ee13abc8f7e62557aaf862bbf6aa3e33f6d33 (diff) | |
cli: notmuch address option defaults update
When no --output option were given, change default to display senders
only.
When only --count option is given, display senders (in contrary to not
displaying anything).
Document that --count with --sort=**order** is not supported option
combination.
Clean up some whitespace in the documentation.
One test updated to have --output=count without sender nor recipient
output option.
Diffstat (limited to 'notmuch-search.c')
| -rw-r--r-- | notmuch-search.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/notmuch-search.c b/notmuch-search.c index 5036d8e4..14b9f01c 100644 --- a/notmuch-search.c +++ b/notmuch-search.c @@ -735,8 +735,8 @@ notmuch_address_command (notmuch_config_t *config, int argc, char *argv[]) if (opt_index < 0) return EXIT_FAILURE; - if (! ctx->output) - ctx->output = OUTPUT_SENDER | OUTPUT_RECIPIENTS; + if (! (ctx->output & (OUTPUT_SENDER | OUTPUT_RECIPIENTS))) + ctx->output |= OUTPUT_SENDER; if (_notmuch_search_prepare (ctx, config, argc - opt_index, argv + opt_index)) |
