From patchwork Wed Jan 17 12:40:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 45636 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c58a:b0:199:de12:6fa6 with SMTP id gn10csp320751pzb; Wed, 17 Jan 2024 04:42:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IFKubwxmCNoHj08ixFy0XFXZD8v4CnbQ1W8SE/VsPySzJXfR4itiYNr/i753+N3pLSemISd X-Received: by 2002:a17:907:c244:b0:a2e:ad03:d933 with SMTP id tj4-20020a170907c24400b00a2ead03d933mr880547ejc.121.1705495328228; Wed, 17 Jan 2024 04:42:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705495328; cv=none; d=google.com; s=arc-20160816; b=swuTQOoG4g13XHixEevsXQuOQCgiYAl9jlTSJKmIW/Azsnn3WICTlNt+8FsRd0lrg3 Gu+sAcub0zef3UqyP/OxweL/JVWjI/ybdguB91zTES1gccSTrrSS9zVibVDK0Th+ufKp LySUZ7/02LgAMiDADhqg6TEKCl9Kql+3D6MihyImfT8+eN0yWMsQWmFFZidpYGBOaYfp eYXu3K9juENbnFWxatGIlQf0EHXNJ4U0DTxtMgwov8jVP1RN/5/b5PiD66pE0MAYP2kc 1/L8ii9c72pUvb3rnKcfMft0tr/pCf88xZF0TDmtArkNITfPl8OiAU7/VSSOY+lohsqY AViQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=YUTEJazdkacBhP0PCmTtga2mps1R46yPP9XhkprMPM4=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=pfwchNMbLAxQDSpqmG9ZD9biwjvocE2mMSIeF3VVTV4LM6JJvM7sbVDeD+eDrFsoqa +sHnYy4cQGNxQXBdjc+4pMb2v9/K4pho0VyaR0mTIExxSJjbXe/eeVcEVjXJAfmXe6SK n5VyTmgCZhUn/yvw9gy+SUupZK2/CO/AaJsFdJ/rzjpqFdN0nSOmdv0SghJKb3hBOaLI RkQ9dXAUiBm2WZKt1i+9B/TFeLZ4S3QpKvi2Gl9V6ThokjhaWhaJbz3fpA9XpLsN4GJA 83XU3w/7UBtzTpwIRgbHyFak1x0wxJpNkC8VSKOQiDWvs9gpeWgSBk0B9P9PIx/rohUJ nPjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@khirnov.net header.s=mail header.b=BsPGWjTb; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id gs9-20020a170906f18900b00a2809452f2fsi5695020ejb.826.2024.01.17.04.42.07; Wed, 17 Jan 2024 04:42:08 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@khirnov.net header.s=mail header.b=BsPGWjTb; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 353E268D015; Wed, 17 Jan 2024 14:41:41 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail1.khirnov.net (quelana.khirnov.net [94.230.150.81]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6BCDB68CF01 for ; Wed, 17 Jan 2024 14:41:31 +0200 (EET) Authentication-Results: mail1.khirnov.net; dkim=pass (2048-bit key; unprotected) header.d=khirnov.net header.i=@khirnov.net header.a=rsa-sha256 header.s=mail header.b=BsPGWjTb; dkim-atps=neutral Received: from localhost (mail1.khirnov.net [IPv6:::1]) by mail1.khirnov.net (Postfix) with ESMTP id 1D55819BC for ; Wed, 17 Jan 2024 13:41:31 +0100 (CET) Received: from mail1.khirnov.net ([IPv6:::1]) by localhost (mail1.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id O6okTDwPkHD8 for ; Wed, 17 Jan 2024 13:41:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1705495289; bh=G4CB1qyh82WQ6JuIcEN0NFoK6mdcR/U1D3p2mfyp9XU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BsPGWjTbTxFMDFeDRBiaulj7+QRDMEfd0ea/mXB573tt8+4aXBt8ZZZwgq+6yi600 plJc1MRW2UJoA41csA8+Mtw5fd70mJsFBvyIQwD8WO+x4JX+VyZvNEHVFPQd6wU5mq v7pj1rcaPE0tQtdNKf8gOP8MwOBi0pnbxOPQdYJAbY1Ei4J/cx6o6W150sZnIHbuzQ 9KjJorMFvlFmHi5lKslEfPr6E0d3lRFRgOIc2LTVazkZq6YyPQZVQjjsb+Kf/KvG9K 6Y4ETCcXpyLGQbCecBSUOqVb23/WS/zECjqja3vmVHPM3xYHUkSfJSjOacDgv/zlYu 9Sq4Cikga5gNw== Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail1.khirnov.net (Postfix) with ESMTPS id 9421619C0 for ; Wed, 17 Jan 2024 13:41:29 +0100 (CET) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 8903C3A054A for ; Wed, 17 Jan 2024 13:41:29 +0100 (CET) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Wed, 17 Jan 2024 13:40:34 +0100 Message-ID: <20240117124036.7877-7-anton@khirnov.net> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20240117124036.7877-1-anton@khirnov.net> References: <20240117124036.7877-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 7/8] fftools/cmdutils: surround option arguments by <> in help output X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: AaQisCzTThgt Makes it more clear that they are placeholders for actual values. --- fftools/cmdutils.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index f652820184..daf7673adb 100644 --- a/fftools/cmdutils.c +++ b/fftools/cmdutils.c @@ -132,10 +132,9 @@ void show_help_options(const OptionDef *options, const char *msg, int req_flags, else if (po->flags & OPT_FLAG_SPEC) av_strlcat(buf, "[:]", sizeof(buf)); - if (po->argname) { - av_strlcat(buf, " ", sizeof(buf)); - av_strlcat(buf, po->argname, sizeof(buf)); - } + if (po->argname) + av_strlcatf(buf, sizeof(buf), " <%s>", po->argname); + printf("-%-17s %s\n", buf, po->help); } printf("\n");