diff options
Diffstat (limited to 'rpt.c')
-rw-r--r-- | rpt.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); |