]> git.refcnt.org Git - colorize.git/commitdiff
Print diagnostic for wrong count of arguments
authorSteven Schubiger <stsc@refcnt.org>
Sat, 3 Aug 2013 21:01:28 +0000 (23:01 +0200)
committerSteven Schubiger <stsc@refcnt.org>
Sat, 3 Aug 2013 21:01:28 +0000 (23:01 +0200)
colorize.c

index a25ec59b19636b0e64eca49d2fe615406f3c18a8..3bb628a8883efbe36f192252d8e2da3f8eb70e7b 100644 (file)
@@ -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);
           }