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 CE93048756 for ; Wed, 17 Jan 2024 12:41:56 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0BB1968CFE3; Wed, 17 Jan 2024 14:41:40 +0200 (EET) Received: from mail1.khirnov.net (quelana.khirnov.net [94.230.150.81]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2C0FD68CEFD 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=YwIAHO5d; dkim-atps=neutral Received: from localhost (mail1.khirnov.net [IPv6:::1]) by mail1.khirnov.net (Postfix) with ESMTP id BC474EE8 for ; Wed, 17 Jan 2024 13:41:30 +0100 (CET) Received: from mail1.khirnov.net ([IPv6:::1]) by localhost (mail1.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id mF1X8tOkcusz 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=bBiU2DYYdgjQJ7TtDlLi6M4RaeTy3ZXLZ3g3mGwed1k=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YwIAHO5dRFQPztIigoRYCwolcaVg21BHt+Ot6Hoc9NtjPu1dBgAX1dE4b592/nEso IRw4VU2HDhV1lS/T2r1rw6zBZhOdHaFe2OoDyvJNeyynVGAg74v3GQST/JgODeUbvF pHKc6NmryYdbbSdM/JpC1JyAuGSuE8LyR0naB4xEGv914EmPreJ2nmnTIQlwWs0sMF 90ZMuNlYmcS09iGXxVSX1PF4wEEncir9/2/nmFBVkDoPuezIW3xD2JB/e7ilpgd7dS MvpTnfMS/Md15se2lxgv/MW1Bd3n7ecLmPAM0Pj1dA0nsOJMV5gn4FVMnV/iXHnUX7 dNnNSKt8rbcpA== 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 86DD619BC 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 71BC93A0634 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:32 +0100 Message-ID: <20240117124036.7877-5-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 5/8] fftools/cmdutils: indicate specifiers in option syntax 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: --- fftools/cmdutils.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index be01372743..f652820184 100644 --- a/fftools/cmdutils.c +++ b/fftools/cmdutils.c @@ -126,6 +126,12 @@ void show_help_options(const OptionDef *options, const char *msg, int req_flags, first = 0; } av_strlcpy(buf, po->name, sizeof(buf)); + + if (po->flags & OPT_FLAG_PERSTREAM) + av_strlcat(buf, "[:]", sizeof(buf)); + 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)); -- 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".