From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C2BEE439B6; Wed, 24 Jan 2024 14:25:03 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8F6DD40294; Wed, 24 Jan 2024 14:25:03 +0100 (CET) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by mails.dpdk.org (Postfix) with ESMTP id 74DE14026F for ; Wed, 24 Jan 2024 14:25:01 +0100 (CET) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id D06535C011B; Wed, 24 Jan 2024 08:25:00 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 24 Jan 2024 08:25:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1706102700; x=1706189100; bh=JtHDw1yNcx1veJrAPvfCnzEbdiEveBT4RVRkja6jAGI=; b= BPV5HwCbyF8rhGIN3TwHJXJt4wnfEO6AIQGDcmYFWH053CYM+zgJu2rt1YELfbO9 eYAtTurKPOLcHtz604/jowj4oZmWKVNb4ZtPrAe+thZOOw1cyyMLp8IpMDBRUl0o HFwDWGhTc6R+h5gtdw7EKZHqsbe/tmpObD5RxbEA1K8xskn3kxsH8ezK634IDqkW MzVUYKxmSVKf0wVvtM3EwnO3Ns4KUTwOtpSNSQhShSJuum60LRZUkAq87rZCAKSD H0DPRWdrKTbUUyPkNYk3Y2sdCPIzT0GxxY40x//2j3nR9vpKTW6FB5U5bdXkeOyE nAurYsaGaBzPuzcsYhGXhg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1706102700; x= 1706189100; bh=JtHDw1yNcx1veJrAPvfCnzEbdiEveBT4RVRkja6jAGI=; b=k weRsfziDYDv+P7CTAiRGmta3gI2gLd1uPuL6wgqV2RL+K5yxegPpvhcMTAZTcg6N kzAG5tlEamDkfTrHfE9h+HvbpDW0ch0Y6jsLitWKwuxaD/N3EITyts+wGF54QyLy 1U8ShI8kZ69thUhRqa5aQIDEV+nFvEcNMCPLGLXaTE0hQbMSszzicNI4majEIQeD yzi/3XRUdCj2x/pBOwiDrdaQoqp6DTd7Kx3DwB5/fqQRJD6jMBsTM8KCtZey63pJ sootyIccf08p4Vssxn0D3q/jSO5Q08OH/kNuXqoODX0rC3CQwv1MKib6O6/IyLBc uMqrNtWcQ4L+eq8KChPUw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeluddggeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpeejjefffffgffekfefflefgkeelteejffelledugefhheelffet heevudffudfgvdenucffohhmrghinhepughpughkrdhorhhgnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhho nhdrnhgvth X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 24 Jan 2024 08:24:59 -0500 (EST) From: Thomas Monjalon To: Chengwen Feng Cc: dev@dpdk.org, ferruh.yigit@amd.com, stephen@networkplumber.org, tangkunshan@huawei.com Subject: Re: [PATCH 02/12] argparse: add argparse library Date: Wed, 24 Jan 2024 14:24:57 +0100 Message-ID: <2358816.n0HT0TaD9V@thomas> In-Reply-To: <20240122035802.31491-3-fengchengwen@huawei.com> References: <20231121122651.7078-1-fengchengwen@huawei.com> <20240122035802.31491-1-fengchengwen@huawei.com> <20240122035802.31491-3-fengchengwen@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 22/01/2024 04:57, Chengwen Feng: > Introduce argparse library (which was inspired by the thread [1]). This > commit provides public API and doc. > > [1] https://patchwork.dpdk.org/project/dpdk/patch/20231105054539.22303-2-fengchengwen@huawei.com/ I'm not sure how this helps with the initial problem when using kvargs with key-only. I think you should continue fixing kvargs API and usage. About a generic argparse library, I imagine it could simplify DPDK internal parsing. I have doubts about making it a public library as it is not really a DPDK goal. The DMA example looks better with argparse so I imagine we want it. I think this library would have a bigger value if we integrate some specific syntax parsing like coremask/corelist as done in another patchset: https://patches.dpdk.org/project/dpdk/list/?series=30582