On Thu, 06 Oct 2011 21:20:40 -0300, David Bremner <bremner@unb.ca> wrote: > > I'd like to add a search term argument to notmuch dump (see > id:"87wrcijn1w.fsf@zancas.localnet" and followup for context). The > "notmuch" way would be to have > > notmuch dump <search-term> > > do the right thing Another option occured to me that is consistent at least with notmuch tag and notmuch show would be to support the following transitional syntaxes notmuch dump file notmuch dump file [--] search terms notmuch dump -- search terms the first two could then be deprecated, and eventually the syntax notmuch dump search terms could be enabled. the question of whether to support notmuch dump --file foo.txt or something like notmuch --stdout=foo.txt dump could be dealt with later. David