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 CA64243922; Mon, 22 Jan 2024 05:54:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9667740685; Mon, 22 Jan 2024 05:54:12 +0100 (CET) Received: from mail-oo1-f42.google.com (mail-oo1-f42.google.com [209.85.161.42]) by mails.dpdk.org (Postfix) with ESMTP id AAA5B4064C for ; Mon, 22 Jan 2024 05:54:11 +0100 (CET) Received: by mail-oo1-f42.google.com with SMTP id 006d021491bc7-5997492d71cso866355eaf.2 for ; Sun, 21 Jan 2024 20:54:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1705899251; x=1706504051; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=4j66er+K/dUjJ3c1XAmhkrhqbOe0r9nJLvJ5Ji5siqw=; b=iQ+JxY7RzMCjpj5Nzvx2Xuarv8+mavvBsaMxcyy87S8O6YqNCqQJsIVTuWWVtW6mif HOKUw4qhrEuKjDPjYh5T4Jogtl49et+TPpmRW13rtWHv+ZMWk2JzG2XPSxJKi62oxrsg SsRf9VvV9GEqEouiAaxdsLmu/qknWxgXXDtNOtcUcHsv3mV+nvAhnEfRphEkXu8S/W+h 4qjVrrP7xkfqNutXj8MjIPrM49cd0BJjCx5Zheq16O8SDZ2VX+zRgKQ4+FULNwvfgT1G ZIoCHeo5xUirheUpPVqmTxjI6X33paO3LIOWXy/L7u8lgClsdizd9M1ezBf6DJUCeWs6 pXWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705899251; x=1706504051; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4j66er+K/dUjJ3c1XAmhkrhqbOe0r9nJLvJ5Ji5siqw=; b=UopRr0L+6fRvKCHGnHVhxrGE+7dYU13g+T8hRdeYRp7LmkS8Qn6PKg9GT5gZSQYyMb 0WLAgyw/V2ae/bMquGmg4WaiM7OfLZUdh+L2Xj4p/BIT216QcSyV996bQaDkGR05bKeo DvqL+H8Fkg+lK6knxo2yXa8hyJWXS0sOiL8xwKy/7vHlzzviSmLzZw8eFMQD0YYakfW0 fqhdlw81+5W02FzNecQCLyCn80cAw8FLIGeEpDCwTA1bg3eDwXG0jNLOwKBp0keuibC6 ZYJuN2NnTOrkjUj952+RWagAq+wi+yWs9HwKuHkT2+2TGJ1HYc72PsNW9ZXHlSO93gk1 2OQA== X-Gm-Message-State: AOJu0YxFx9DhZ6UfIubmYAn/89fO5qvgy8GdYdluksUzb2bHECkj5hKG HiT0myxi72IZf+Pj/xbjkwotJE/U8o2hfMmQ1YK+YXBcAe4Pr4YaBQaz5WiaMBE= X-Google-Smtp-Source: AGHT+IGdqZ1mEkD5x+Mh0hwlqWArbp2CV1k5nj3Gwx7VeiKDDG7EGkruNW5vQV/4v7H+qumXTzY8iA== X-Received: by 2002:a05:6358:5d88:b0:176:5b4f:404a with SMTP id s8-20020a0563585d8800b001765b4f404amr520147rwm.11.1705899250685; Sun, 21 Jan 2024 20:54:10 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id ko18-20020a056a00461200b006dab0d72cd0sm8761218pfb.214.2024.01.21.20.54.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 20:54:10 -0800 (PST) Date: Sun, 21 Jan 2024 20:54:08 -0800 From: Stephen Hemminger To: Chengwen Feng Cc: , , , Subject: Re: [PATCH 02/12] argparse: add argparse library Message-ID: <20240121205408.0b5e1050@hermes.local> 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-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 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.