From 5028bdc63573b90e18980b0de1eed49d003bad2e Mon Sep 17 00:00:00 2001 From: Steven Schubiger Date: Sat, 3 Aug 2013 23:01:28 +0200 Subject: Print diagnostic for wrong count of arguments --- colorize.c | 1 + 1 file changed, 1 insertion(+) diff --git a/colorize.c b/colorize.c index a25ec59..3bb628a 100644 --- a/colorize.c +++ b/colorize.c @@ -312,6 +312,7 @@ main (int argc, char **argv) { if (arg_cnt == 0 || arg_cnt > 2) { + vfprintf_diag ("%u arguments provided, expected 1-2 arguments or option", arg_cnt); print_help (); exit (EXIT_FAILURE); } -- cgit v1.2.3