Re: [notmuch] [PATCH] Add an "--output=(json|text|)" command-line option to both notmuch-search and notmuch-show.

Subject: Re: [notmuch] [PATCH] Add an "--output=(json|text|)" command-line option to both notmuch-search and notmuch-show.

Date: Fri, 18 Dec 2009 20:36:34 -0400

To: Carl Worth, notmuch@notmuchmail.org

Cc:

From: David Bremner


On Fri, 18 Dec 2009 09:33:43 -0800, Carl Worth <cworth@cworth.org> wrote:

> I think that selecting *what* to emit is orthogonal from selecting *how*
> to format that output. 

I can see that point of view.

> See some ideas in the TODO file, (where I proposed --for and --format
> options for these).

It's a detail, but could you choose two names that are not substrings of
each other?  Eventually we do want tab completion on the command line to
work :).  Also, "search --for tags foo" suggests to me that
searching for tags matching foo.  What about using --output for that?
One thing that is not completely clear to me at this point is what the
difference is between 

    notmuch search --for messages  search-terms

and 

    notmuch show search-terms

David

Thread: