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 577F943923; Mon, 22 Jan 2024 07:07:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E404A40A84; Mon, 22 Jan 2024 07:07:15 +0100 (CET) Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) by mails.dpdk.org (Postfix) with ESMTP id BF6C9402C9 for ; Mon, 22 Jan 2024 07:06:51 +0100 (CET) Received: from mail.maildlp.com (unknown [172.19.88.214]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4TJKSg0ppPz29kbk; Mon, 22 Jan 2024 14:05:07 +0800 (CST) Received: from dggpeml500024.china.huawei.com (unknown [7.185.36.10]) by mail.maildlp.com (Postfix) with ESMTPS id 7AC271A016D; Mon, 22 Jan 2024 14:06:34 +0800 (CST) Received: from [10.67.121.161] (10.67.121.161) by dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 22 Jan 2024 14:06:34 +0800 Subject: Re: [PATCH 02/12] argparse: add argparse library To: Stephen Hemminger CC: , , , References: <20231121122651.7078-1-fengchengwen@huawei.com> <20240122035802.31491-1-fengchengwen@huawei.com> <20240122035802.31491-3-fengchengwen@huawei.com> <20240121205408.0b5e1050@hermes.local> From: fengchengwen Message-ID: <828a3892-4e54-625f-a67b-d6b8d39253f7@huawei.com> Date: Mon, 22 Jan 2024 14:06:34 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20240121205408.0b5e1050@hermes.local> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.121.161] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml500024.china.huawei.com (7.185.36.10) 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 Hi Stephen, On 2024/1/22 12:54, Stephen Hemminger wrote: > On Mon, 22 Jan 2024 03:57:52 +0000 > Chengwen Feng wrote: > >> +Parsing by autosave way >> +~~~~~~~~~~~~~~~~~~~~~~~ >> + >> +For which known value types (just like ``RTE_ARGPARSE_ARG_VALUE_INT``"), could >> +parse by autosave way, just like above "--aaa"/"--bbb"/"--ccc" optional >> +arguments: >> + >> +If the user input parameter are: "program --aaa --bbb 1234 --ccc=20 ...", then >> +the aaa_val will equal 100, the bbb_val will equal 1234 and the ccc_val will >> +equal 20. >> + >> +If the user input parameter are: "program --ccc ...", then the aaa_val and >> +bbb_val will not modify, and ccc_val will equal 200. > > These paragraphs are awkwardly worded. I will try to refine it, Thanks. > . >