From: Steven Schubiger Date: Tue, 28 May 2013 15:56:18 +0000 (+0200) Subject: Bail out if both clean switches are provided X-Git-Tag: v0.51~11 X-Git-Url: http://git.refcnt.org/?a=commitdiff_plain;h=27612c3e28795f3403ac5bd73e8739d0c4bbf11a;p=colorize.git Bail out if both clean switches are provided --- diff --git a/colorize.c b/colorize.c index 652d3a6..c402a01 100644 --- a/colorize.c +++ b/colorize.c @@ -310,6 +310,8 @@ main (int argc, char **argv) if (clean || clean_all) { + if (clean && clean_all) + vfprintf_fail (formats[FMT_GENERIC], "--clean and --clean-all switch are mutually exclusive"); if (arg_cnt > 1) { const char *format = "%s %s";