]> git.cworth.org Git - notmuch/commitdiff
cli: Allow combining --remove-all and --batch
authorDaniel Schoepe <daniel@schoepe.org>
Tue, 11 Aug 2015 07:46:37 +0000 (09:46 +0200)
committerDavid Bremner <david@tethera.net>
Thu, 19 Nov 2015 11:50:58 +0000 (07:50 -0400)
This patch removes the restriction on notmuch-tag that disallows using
both --remove-all and --batch. Combining the two options removes tags
on all messages affected by each query before applying the new tags.

notmuch-tag.c

index c020cb6f40b8ad3677aac9fa6104ef3d4aba78b6..0d1532826a2e81999ba833d4b18fa800fc060d81 100644 (file)
@@ -237,10 +237,6 @@ notmuch_tag_command (notmuch_config_t *config, int argc, char *argv[])
            fprintf (stderr, "Can't specify both cmdline and stdin!\n");
            return EXIT_FAILURE;
        }
-       if (remove_all) {
-           fprintf (stderr, "Can't specify both --remove-all and --batch\n");
-           return EXIT_FAILURE;
-       }
     } else {
        tag_ops = tag_op_list_create (config);
        if (tag_ops == NULL) {