diff options
author | Tristan Riehs <tristan.riehs@bordeaux-inp.fr> | 2023-09-28 22:16:45 +0200 |
---|---|---|
committer | Tristan Riehs <tristan.riehs@bordeaux-inp.fr> | 2023-09-28 22:16:45 +0200 |
commit | f9bdf01303826d8f1de24fe7061ab4057b7da4cb (patch) | |
tree | 18c66c4dcdb58ad76c7962ab95d68b4bac60df09 | |
parent | e9e456a243b57ac293af95ee6ab5f2435e5b6f3b (diff) |
man page improved
-rw-r--r-- | rpt.1 | 76 |
1 files changed, 73 insertions, 3 deletions
@@ -7,18 +7,88 @@ rpt \- repeat a shell command .SH SYNOPSIS .B rpt +[ +.B \-n +| +.B \-\-count +.I COUNT +] [ +.B \-f +| +.B \-\-force +] +.I COMMAND + +.B rpt +[ +.B \-h +| +.B \-\-help +] + +.B rpt +[ +.B \-V +| +.B \-\-version +] .SH DESCRIPTION +.B rpt +allows you to easily repeat a command a certain number of times. .SH OPTIONS +.BR \-h , +.B \-\-help +.RS +Display help. +.RE + +.BR \-V , +.B \-\-version +.RS +Display version. +.RE + +.BR \-n , +.B \-\-count +.I COUNT +.RS +Repeat +.I COMMAND COUNT +times. +If this flag is not given, +.I COMMAND +is invoked once. +.RE + +.BR \-f , +.B \-\-force +.RS +By default, +.B rpt +stops whenever +.I COMMAND +fails. +If the +.B force +flag is set, +.B rpt +ignores errors. .SH "EXIT STATUS" -.1 Invalid option. +1. Invalid option. -.2 Error while reading +2. Error while reading .IR COUNT . +This includes the case where the +.B count +flag is given, +but +.I COUNT +is missing. -.3 +3. .I COMMAND not provided. |