]> git.notmuchmail.org Git - notmuch/blobdiff - man/man1/notmuch-tag.1
Merge branch 'release'
[notmuch] / man / man1 / notmuch-tag.1
index 3aa2fa527fee70c6727cef62857f220308f434ef..c7d7a4d344c2f63beb7664c36a87cf013b82a486 100644 (file)
@@ -1,10 +1,10 @@
-.TH NOTMUCH-TAG 1 2012-08-20 "Notmuch 0.14"
+.TH NOTMUCH-TAG 1 2013-02-17 "Notmuch 0.15.2"
 .SH NAME
 notmuch-tag \- add/remove tags for all messages matching the search terms
 
 .SH SYNOPSIS
 .B notmuch tag
-.RI "+<" tag ">|\-<" tag "> [...] [\-\-] <" search-term "> [...]"
+.RI [ options "...] +<" tag ">|\-<" tag "> [...] [\-\-] <" search-term "> [...]"
 
 .B notmuch tag
 .RI "--batch"
@@ -20,8 +20,8 @@ for details of the supported syntax for
 .RI < search-term >.
 
 Tags prefixed by '+' are added while those prefixed by '\-' are
-removed. For each message, tag removal is performed before tag
-addition.
+removed. For each message, tag changes are applied in the order they
+appear on the command line.
 
 The beginning of the search terms is recognized by the first
 argument that begins with neither '+' nor '\-'. Support for
@@ -38,6 +38,16 @@ details.
 Supported options for
 .B tag
 include
+.RS 4
+.TP 4
+.BR \-\-remove\-all
+
+Remove all tags from each message matching the search terms before
+applying the tag changes appearing on the command line. This means
+setting the tags of each message to the tags to be added. If there are
+no tags to be added, the messages will have no tags.
+.RE
+
 .RS 4
 .TP 4
 .BR \-\-batch