diff options
author | Tristan Riehs <tristan.riehs@bordeaux-inp.fr> | 2024-02-09 07:51:43 +0100 |
---|---|---|
committer | Tristan Riehs <tristan.riehs@bordeaux-inp.fr> | 2024-02-09 07:51:43 +0100 |
commit | c96afdbe1222c970affbdbbfacdab4cafc8a81bd (patch) | |
tree | e16e602f17e0ac2bd0d042e440167d3324831a30 /rpt.1.in | |
parent | 5c8754abbe64c716f6c6679f340f93f9a2f10a03 (diff) |
OPTIONS and EXIT STATUS section formatted properly
Diffstat (limited to 'rpt.1.in')
-rw-r--r-- | rpt.1.in | 48 |
1 files changed, 19 insertions, 29 deletions
@@ -2,11 +2,10 @@ .\" You may distribute this file under the terms of the GNU Free .\" Documentation License. .TH repeat 1 "2024-02-03" "repeat @VERSION@" - .SH NAME repeat \- repeat a shell command - .SH SYNOPSIS +.TP .B rpt [ .B \-n @@ -19,14 +18,13 @@ repeat \- repeat a shell command .B \-p ] .I COMMAND - +.TP .B rpt [ .B \-h | .B \-v ] - .SH DESCRIPTION .B rpt allows you to easily repeat a command a certain number of times. @@ -34,29 +32,21 @@ The command is repeated sequentially. If stdin is not empty, it is given to .IR COMMAND . - .SH OPTIONS .TP .B \-h Display help and exit. -.PP - .TP .B \-v Display version and exit. -.PP - .TP -.B \-n -.I COUNT +.BR \-n \fICOUNT\fR Repeat .I COMMAND COUNT times. If this flag is not given, .I COMMAND is invoked once. -.PP - .TP .B \-f By default, @@ -72,8 +62,6 @@ ignores errors. Icompatible with the .B \-u flag. -.PP - .TP .B \-u Repeat @@ -96,18 +84,23 @@ Therefore, the and the .B \-n option suppress each other behavior. -.PP - +.TP +.B \-p +Print the number of times +.I COMMAND +has been executed before exiting. .SH "EXIT STATUS" When a subprocess exit abnormally and the .B force flag is not given, .B rpt exits with the same status as the subprocess. - -1. Invalid option. - -2. Error while reading +.TP +1 +Invalid option. +.TP +2 +Error while reading .IR COUNT . This includes the case where the .B count @@ -115,21 +108,18 @@ flag is given, but .I COUNT is missing. - -3. +.TP +3 .I COMMAND not provided. - -4. Other error. - +.TP +4 +Other error. .SH FILES None. - .SH "SEE ALSO" .BR seq (1) .BR test (1) - .SH BUGS - .SH AUTHOR Tristan Riehs <tristan.riehs@bordeaux-inp.fr> |