[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Quilt-dev] [patch 08/26] Make synopsis comprehensive.
From: |
Jean Delvare |
Subject: |
Re: [Quilt-dev] [patch 08/26] Make synopsis comprehensive. |
Date: |
Wed, 20 Jun 2018 11:48:19 +0200 |
On Sat, 16 Jun 2018 12:22:40 -0400, address@hidden wrote:
> Document --quiltrc, --trace, and --version options explicitly.
Good idea.
> Separate the informational operation modes for reporting help and
> version information.
Good idea as well.
> Mark up synopsis canonically (literals in bold, variable content in
> italics, and roman for "synopsis language" (option brackets, etc.)).
>
> Use groff_man(7)'s SY and YS macros for more attractive presentation.
>
> Index: quilt/doc/quilt.1.in
> ===================================================================
> --- quilt.orig/doc/quilt.1.in
> +++ quilt/doc/quilt.1.in
> @@ -4,8 +4,19 @@
> .SH NAME
> quilt \\- tool to manage series of patches
> .SH SYNOPSIS
> -.B quilt
> -[\\-h] command [options]
> +.SY quilt
> +.RB [ \\-\\-quiltrc
> +.IR file ]
> +.OP \\-\\-trace
> +.I command
You are dropping the trailing [options], which I believe was valuable.
You may argue that "options" is vague, but it had at least the merit to
show that command-specific options must go after the command. In fact,
[command options] may be even better.
> +.YS
> +.SY "quilt \\-h"
> +.RI [ command ]
> +.SY quilt
> +.I command
> +.B \\-h
This one is redundant with both the first invocation (technically) and
the second invocation (functionally), so I would not mention it. At
least not on a separate line... If you really want to document command
option -h because it is common to all commands, then I would add it to
the first invocation:
quilt [--quiltrc file] [--trace] command [-h] [command options]
> +.SY "quilt \\-\\-version"
> +.YS
> .SH DESCRIPTION
> Quilt is a tool to manage large sets of patches by keeping track of the
> changes each patch makes.
Thanks,
--
Jean Delvare
SUSE L3 Support
- Re: [Quilt-dev] [patch 02/26] Eliminate or replace blank lines., (continued)
[Quilt-dev] [patch 03/26] Break input lines at all sentence endings., g . branden . robinson, 2018/06/16
[Quilt-dev] [patch 05/26] Use font macros instead of font escapes., g . branden . robinson, 2018/06/16
[Quilt-dev] [patch 08/26] Make synopsis comprehensive., g . branden . robinson, 2018/06/16
- Re: [Quilt-dev] [patch 08/26] Make synopsis comprehensive.,
Jean Delvare <=
[Quilt-dev] [patch 10/26] Use "e.g." correctly., g . branden . robinson, 2018/06/16
[Quilt-dev] [patch 07/26] Escape ASCII hyphen-minus characters used as such., g . branden . robinson, 2018/06/16
[Quilt-dev] [patch 12/26] Update internal and external cross-references., g . branden . robinson, 2018/06/16
[Quilt-dev] [patch 14/26] Document -h flag in the Options section., g . branden . robinson, 2018/06/16
[Quilt-dev] [patch 11/26] Italicize work titles., g . branden . robinson, 2018/06/16