Hi, this is a second version of my adaptation of Jani's patch series adding --output=addresses and similar arguments to notmuch search.
Based on the feedback from others, this version uses Jani's original "keyword flags" implementation with --flag=a --flab=b syntax. Also the tests for --output and --unique flags are not mixed together, but are included in the patches that introduce the new features. I left the default value of the --unique option the same as before, because I'm convinced that this is what makes most sense. But of course, we can discuss about that. -Michal Jani Nikula (1): cli: Add support for parsing multiple keyword arguments Michal Sojka (3): cli: Refactor option passing in the search command cli: Extend the search command for --output=addresses and similar cli: Add configurable address deduplication for --output=addresses command-line-arguments.c | 6 +- command-line-arguments.h | 1 + completion/notmuch-completion.bash | 8 +- completion/notmuch-completion.zsh | 4 +- doc/man1/notmuch-search.rst | 54 ++++++- notmuch-search.c | 311 +++++++++++++++++++++++++++++-------- test/T090-search-output.sh | 64 ++++++++ test/T095-search-unique.sh | 63 ++++++++ test/T410-argument-parsing.sh | 3 +- test/arg-test.c | 9 ++ 10 files changed, 451 insertions(+), 72 deletions(-) create mode 100755 test/T095-search-unique.sh -- 2.1.1