From c96afdbe1222c970affbdbbfacdab4cafc8a81bd Mon Sep 17 00:00:00 2001 From: Tristan Riehs Date: Fri, 9 Feb 2024 07:51:43 +0100 Subject: OPTIONS and EXIT STATUS section formatted properly --- rpt.1.in | 48 +++++++++++++++++++----------------------------- 1 file changed, 19 insertions(+), 29 deletions(-) diff --git a/rpt.1.in b/rpt.1.in index 22620a5..6a0ef04 100644 --- a/rpt.1.in +++ b/rpt.1.in @@ -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 -- cgit v1.2.3