diff options
author | Steven Schubiger <stsc@refcnt.org> | 2013-05-28 17:56:18 +0200 |
---|---|---|
committer | Steven Schubiger <stsc@refcnt.org> | 2013-05-28 17:56:18 +0200 |
commit | 27612c3e28795f3403ac5bd73e8739d0c4bbf11a (patch) | |
tree | f1821bb0cba709ab3d1c976f10864775bea2d91c | |
parent | 3909af9b23ca267137ee58e50f7df03ca2ac0904 (diff) | |
download | colorize-27612c3e28795f3403ac5bd73e8739d0c4bbf11a.tar.gz colorize-27612c3e28795f3403ac5bd73e8739d0c4bbf11a.tar.bz2 |
Bail out if both clean switches are provided
-rw-r--r-- | colorize.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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"; |