output file argument to notmuch dump.
Jameson Graef Rollins
jrollins at finestructure.net
Mon Oct 10 09:41:47 PDT 2011
On Sun, 09 Oct 2011 13:01:53 -0300, David Bremner <bremner at unb.ca> wrote:
> 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.
Hey, David. I think this is a fine approach, Go with the transitional
"--" separator for one release or so, with a deprecation warning, and
then move to the standard form in the release after that.
> the question of whether to support
>
> notmuch dump --file foo.txt
>
> or something like
>
> notmuch --stdout=foo.txt dump
>
> could be dealt with later.
I realize the later probably requires more work, since we would have to
replace all print calls with a new function, but I think it's the
cleaner and more elegant solution. There's no reason to have an output
redirection option for "dump"s and not for any of the other commands.
jamie.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20111010/103e3647/attachment.pgp>
More information about the notmuch
mailing list