From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id AB68545F91 for ; Wed, 17 Jan 2024 12:42:05 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 041DD68D014; Wed, 17 Jan 2024 14:41:41 +0200 (EET) 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: 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"); -- 2.42.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".