aboutsummaryrefslogtreecommitdiff
path: root/rpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpt.c')
-rw-r--r--rpt.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/rpt.c b/rpt.c
index d07d227..4c1fc1d 100644
--- a/rpt.c
+++ b/rpt.c
@@ -154,12 +154,15 @@ main(int argc, char* argv[])
{
fprintf(stderr, "Failed to read COUNT : '%s'.\n",
strcount);
- return 2; /* error while reading COUNT */
+ return 2;
}
}
if (optind >= argc)
- return 3; /* COMMAND not provided */
+ {
+ fprintf(stderr, "rpt: no command provided.\n");
+ return 3;
+ }
repeat_cmd(argv + optind, count, handle_error_f);