aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rpt.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/rpt.c b/rpt.c
index 392e442..c31719a 100644
--- a/rpt.c
+++ b/rpt.c
@@ -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