From b716754d503c44c9bfbf60611ebd610add6bee10 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 16 Nov 2022 14:07:54 +0100 Subject: Use OpenBSDesque formatting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Here is a snippet of how long options with arguments are handled in the OpenBSD sort(1) manual: .It Fl S Ar size , Fl Fl buffer-size Ns = Ns Ar size There are a few take aways from this: 1) The argument should be shown for both the short and long option 2) You don’t need to use “Ns” before the comma --- center.1 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/center.1 b/center.1 index 8333ad9..bd8be8a 100644 --- a/center.1 +++ b/center.1 @@ -12,7 +12,7 @@ .\" LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR .\" OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR .\" PERFORMANCE OF THIS SOFTWARE. -.Dd $Mdocdate: November 13 2022 $ +.Dd $Mdocdate: November 16 2022 $ .Dt CENTER 1 .Os .Sh NAME @@ -51,15 +51,15 @@ flag. .Pp The options are as follows: .Bl -tag -width Ds -.It Fl e Ns , Fl Fl ignore\-ansi +.It Fl e , Fl Fl ignore\-ansi Do not take ANSI color escape sequences into account when centering input. This will cause input containing ANSI color escape sequences to fail to be visually centered. -.It Fl l Ns , Fl Fl longest +.It Fl l , Fl Fl longest Center the file as a whole instead of centering each line individually. In otherwords each line is centered as if it has the length of the longest line. This is useful for tasks like centering source code. -.It Fl r Ns , Fl Fl spaces +.It Fl r , Fl Fl spaces Display tabs using spaces. By default .Nm @@ -71,12 +71,12 @@ This flag ensures that every tab character will display as 8 columns or the amount of columns specified by the .Fl t flag. -.It Fl t Ns , Fl Fl tabsize Ns = Ns Ar width +.It Fl t Ar width , Fl Fl tabsize Ns = Ns Ar width Treat tab characters as if they have a width of .Ar width . If this option is not specified, tabs are assumed to have a tab width of 8 columns. -.It Fl w Ns , Fl Fl width Ns = Ns Ar width +.It Fl w Ar width , Fl Fl width Ns = Ns Ar width Center align the input as if the output device has a width of .Ar width . This option is required when the output device is not a terminal. -- cgit v1.2.3