From 27612c3e28795f3403ac5bd73e8739d0c4bbf11a Mon Sep 17 00:00:00 2001 From: Steven Schubiger Date: Tue, 28 May 2013 17:56:18 +0200 Subject: Bail out if both clean switches are provided --- colorize.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'colorize.c') 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"; -- cgit v1.2.3