From: Daniel Schoepe Date: Tue, 11 Aug 2015 07:46:37 +0000 (+0200) Subject: cli: Allow combining --remove-all and --batch X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8b5644e63d49a8841d32130d67c465da0623db74;p=notmuch.git 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. --- 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) {