From 8b5644e63d49a8841d32130d67c465da0623db74 Mon Sep 17 00:00:00 2001 From: Daniel Schoepe Date: Tue, 11 Aug 2015 09:46:37 +0200 Subject: [PATCH] cli: Allow combining --remove-all and --batch 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 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/notmuch-tag.c b/notmuch-tag.c index c020cb6f..0d153282 100644 --- a/notmuch-tag.c +++ b/notmuch-tag.c @@ -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) { -- 2.39.2