aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--colorize.c2
1 files changed, 2 insertions, 0 deletions
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";