aboutsummaryrefslogtreecommitdiffstats
path: root/colorize.c
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2013-05-28 17:56:18 +0200
committerGravatar Steven Schubiger <stsc@refcnt.org> 2013-05-28 17:56:18 +0200
commit27612c3e28795f3403ac5bd73e8739d0c4bbf11a (patch)
treef1821bb0cba709ab3d1c976f10864775bea2d91c /colorize.c
parent3909af9b23ca267137ee58e50f7df03ca2ac0904 (diff)
downloadcolorize-27612c3e28795f3403ac5bd73e8739d0c4bbf11a.tar.gz
colorize-27612c3e28795f3403ac5bd73e8739d0c4bbf11a.tar.bz2
Bail out if both clean switches are provided
Diffstat (limited to 'colorize.c')
-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";