Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8027DC433EF for ; Thu, 16 Jun 2022 13:40:57 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BD1B684362; Thu, 16 Jun 2022 15:40:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="g/oZIoO1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DF3858435C; Thu, 16 Jun 2022 15:40:52 +0200 (CEST) Received: from mail-qv1-xf33.google.com (mail-qv1-xf33.google.com [IPv6:2607:f8b0:4864:20::f33]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EC93C8433D for ; Thu, 16 Jun 2022 15:40:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seanga2@gmail.com Received: by mail-qv1-xf33.google.com with SMTP id u8so2118332qvj.2 for ; Thu, 16 Jun 2022 06:40:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=kPZP41L04kSveaeNBLlfilwnah92cLHzGgeVlvCMmzw=; b=g/oZIoO1m6iOoWbpakr22+meNFiT3dQS3AcsorC1IqNWOlTUNBzT3OCf6HDVrEUmQW LXlaUURCF0bYRx113ZJcVL5LO3mpsnZOtYHxHzNoYKOTYGWaF2xjwACG5J27D5QEHs0z 1FJQvkgOQsBQB+tSAagHK91njWNJDncfwAR6c7OSVIFafHRpMd+Uee7qLAl6NyweoFAo kF0xk5fF4jrtIrF0UwD6Du0KNB+WUAuOURuWsrXzRNnLHN7Ht64qjUw2x4QWnTYxt879 f8AhFllqJbxk3u+GjTQypVWrFa64+Hj4V60bsZUTC1myFQ1aBCM1fRtrgKURGeDWmTfF S9YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=kPZP41L04kSveaeNBLlfilwnah92cLHzGgeVlvCMmzw=; b=Nh2T76yuNxDYo3k4jf3bbM3esSGiG3/DTuFtl1gnFw1TsskEuaY7OYYhdfeP8T7bvn xjP9RPTIwuOBIHq23PP22j8pFjSsr4rqg9+udicUboKNY7ryApAEjGOovAHCkYdaWoah 7faug94wcnV+6E6TCx62GK14LTY9BB9ekltVcdjOzLkvReaLY2DVfl7Q7mMSa/SLJoNG /0kQ7O5XgnnP2dDqGcjnRHVOV38eb6Uxo76IEdqRcaJ8iukTxGcBYw1HAiTH7gBjExyE /vrnC/6WwoZWic+2zBtK8Gi8iJCrqNNTJor+2uHcQMI5U1j3gGxwFm7XIQKwXeETiJLa Wlxg== X-Gm-Message-State: AJIora9tGRz4XDE6/XluMO4tZz5ofMYebpqC/23QXu29RSnEMpYsN1jd 8CvpZ5QNyavXWho61SZYR99za+3iYjko0bot X-Google-Smtp-Source: AGRyM1v2mQI7gb8D7qppyz5kpmpx7bi3px9kLzagASEiMpRPVu02uNVnnbdMXKt51bDQpLuzCVs1ug== X-Received: by 2002:a05:6214:769:b0:46e:6d8b:adbf with SMTP id f9-20020a056214076900b0046e6d8badbfmr4025710qvz.72.1655386848282; Thu, 16 Jun 2022 06:40:48 -0700 (PDT) Received: from [192.168.1.201] (pool-173-73-95-180.washdc.fios.verizon.net. [173.73.95.180]) by smtp.gmail.com with ESMTPSA id bm12-20020a05620a198c00b006a7284e5741sm1960254qkb.54.2022.06.16.06.40.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Jun 2022 06:40:47 -0700 (PDT) Subject: Re: [PATCH v2 01/14] doc: mkimage: Use standard style for synopsis To: Heinrich Schuchardt Cc: Simon Glass , u-boot@lists.denx.de References: <20220612221411.1608406-1-seanga2@gmail.com> <20220612221411.1608406-2-seanga2@gmail.com> <8f712626-30c3-ef1e-084f-842c61618af6@gmx.de> From: Sean Anderson Message-ID: <31affbf0-3182-ed13-64f5-de9413a27d40@gmail.com> Date: Thu, 16 Jun 2022 09:40:47 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <8f712626-30c3-ef1e-084f-842c61618af6@gmx.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean On 6/16/22 5:45 AM, Heinrich Schuchardt wrote: > On 6/13/22 00:13, Sean Anderson wrote: >> The synopsis section is a bit messy. As an example, "uimage file name"= is >> printed in italics, bold, and roman (depending on the line). This clea= ns >> things up and converts the synopsis section to use standard style. The= >> .SY/.YS macros set up appropriate fomatting for command synopsis secti= ons >=20 > nits: > %s/fomatting/formatting/ >=20 >> (such as disabling hyphenation and setting a hanging indent). All part= s of >> the synopsis now use the following style: >> >> - Bold for parts of the command which should be typed in by the user (= such >> =C2=A0=C2=A0 as the program name and flags) >> - Italic for parts which should be replaced (such as uimage-file-name)= >> - Roman for parts which should not be typed at all (such as brackets) >> >> Multi-word variables now use hyphens to connect their words instead of= >> spaces. This makes it clearer that all the words are part of the same >> variable. Additionally, "option ..." is used to denote where other opt= ions >> may be specified, as this appears to be standard style. >> >> Signed-off-by: Sean Anderson >> --- >> >> Changes in v2: >> - Fix spacing for -F >> >> =C2=A0 doc/mkimage.1 | 26 ++++++++++++++++++-------- >> =C2=A0 1 file changed, 18 insertions(+), 8 deletions(-) >> >> diff --git a/doc/mkimage.1 b/doc/mkimage.1 >> index 759dc2d12f..dc597272d4 100644 >> --- a/doc/mkimage.1 >> +++ b/doc/mkimage.1 >> @@ -3,17 +3,27 @@ >> =C2=A0 .SH NAME >> =C2=A0 mkimage \- Generate image for U-Boot >> =C2=A0 .SH SYNOPSIS >> -.B mkimage >> -.RB [ \-T " \fItype\fP] " \-l " [\fIuimage file name\fP]" >=20 > mkimage -T script -l boot.scr >=20 > is illegal. Why did you add '-T type'? This is the original synopsis. I have kept it as-is. -T type is necessary for some types which are not autodetected, e.g. pblimage. >> +.SY mkimage >> +.OP \-T type >> +.BI \-l\~ image-file-name >=20 > Replacing uimage by image seems to be correct. But you could mention it= > in the commit message. Sure. >> +.YS >> >> -.B mkimage >> -.RB [\fIoptions\fP] " \-f [" "image tree source file" "]" " [" "uimag= e file name" "]" >> +.SY mkimage >> +.RI [ option\~ .\|.\|.\&] >> +.BI \-f\~ image-tree-source-file\c >> +.RB | auto >=20 > Adding 'auto' is also not mentioned in the commit message. Will mention. >> +.I image-file-name >> +.YS >> >> -.B mkimage >> -.RB [\fIoptions\fP] " \-F [" "uimage file name" "]" >> +.SY mkimage >> +.RI [ option\~ .\|.\|.\&] >> +.BI \-F\~ image-file-name >> +.YS >> >> -.B mkimage >> -.RB [\fIoptions\fP] " (legacy mode)" >> +.SY mkimage >> +.RI [ option\~ .\|.\|.\&] >> +.R (legacy mode) >=20 > (legacy mode) is not an argument. So it should not appear in the synops= is That's why it's not in italics/bold. > The last addition of an image type has commit date 2022-04-04 > (IH_TYPE_SUNXI_TOC0). The term 'legacy mode' for everything that is not= > FIT is misleading and should be avoided. I agree. I will remove it. >> +.YS >> >> =C2=A0 .SH "DESCRIPTION" >> =C2=A0 The > The following command is not covered by any entry in the synopsis: >=20 > mkimage -T script -n GRUB -d boot.txt boot.scr >=20 > The synopsis lacks an entry I believe this is covered by the "legacy" mode. > mkimage -T type [options] image-file-name But perhaps it would be better to list "legacy" mode as mkimage [options...] [-T type] image-file-name --Sean