diff options
| author | Tristan Riehs <tristan.riehs@bordeaux-inp.fr> | 2024-02-03 18:14:20 +0100 | 
|---|---|---|
| committer | Tristan Riehs <tristan.riehs@bordeaux-inp.fr> | 2024-02-03 18:14:20 +0100 | 
| commit | 945ac43982fdd6e49f3cee5334e20a5df8dd8382 (patch) | |
| tree | 6e0ec812be3951033e3007b491938254864bd859 | |
| parent | fde02eafff1ec7c16666f689a6bb62e7a78d6671 (diff) | |
help message formatted better
| -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  | 
