diff options
author | Steven Schubiger <stsc@refcnt.org> | 2013-08-03 23:01:28 +0200 |
---|---|---|
committer | Steven Schubiger <stsc@refcnt.org> | 2013-08-03 23:01:28 +0200 |
commit | 5028bdc63573b90e18980b0de1eed49d003bad2e (patch) | |
tree | 2981cd71ee1881df8d25c3be291fa1650a7f01e9 /colorize.c | |
parent | d735e9ff2fe6f739365b4f0b17c8512ab2ca8ae2 (diff) | |
download | colorize-5028bdc63573b90e18980b0de1eed49d003bad2e.tar.gz colorize-5028bdc63573b90e18980b0de1eed49d003bad2e.tar.bz2 |
Print diagnostic for wrong count of arguments
Diffstat (limited to 'colorize.c')
-rw-r--r-- | colorize.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |