aboutsummaryrefslogtreecommitdiffstats
path: root/colorize.c
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2013-08-03 23:01:28 +0200
committerGravatar Steven Schubiger <stsc@refcnt.org> 2013-08-03 23:01:28 +0200
commit5028bdc63573b90e18980b0de1eed49d003bad2e (patch)
tree2981cd71ee1881df8d25c3be291fa1650a7f01e9 /colorize.c
parentd735e9ff2fe6f739365b4f0b17c8512ab2ca8ae2 (diff)
downloadcolorize-5028bdc63573b90e18980b0de1eed49d003bad2e.tar.gz
colorize-5028bdc63573b90e18980b0de1eed49d003bad2e.tar.bz2
Print diagnostic for wrong count of arguments
Diffstat (limited to 'colorize.c')
-rw-r--r--colorize.c1
1 files changed, 1 insertions, 0 deletions
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);
}