diff options
Diffstat (limited to 'rpt.c')
-rw-r--r-- | rpt.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -29,18 +29,19 @@ int clone_fd; void print_usage(FILE *output) { - fprintf(output, "Usage:\n"); - fprintf(output, "rpt [-n | --count COUNT] [-f | --force] COMMAND\n"); - fprintf(output, "rpt [-h | --help]\n"); - fprintf(output, "rpt [-V | --version]\n"); + fprintf(output, "Usage: rpt [OPTIONS] COMMAND\n"); } void print_help() { - puts("Repeat : repeat a shell command"); - puts(""); + printf("Repeat: repeat a shell command\n"); print_usage(stdout); + printf("OPTIONS:\n"); + printf(" -n COUNT\tRepeat COMMAND COUNT times.\n"); + printf(" -f\t\tDo not exit if one process fails.\n"); + printf(" -h\t\tPrint this message and exit.\n"); + printf(" -v\t\tPrint the version number and exit.\n"); } void |