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 DC84743BCF; Thu, 7 Mar 2024 14:09:31 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 072FD42E74; Thu, 7 Mar 2024 14:09:28 +0100 (CET) Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) by mails.dpdk.org (Postfix) with ESMTP id 02CC5410D5 for ; Thu, 7 Mar 2024 14:09:24 +0100 (CET) Received: from mail.maildlp.com (unknown [172.19.88.214]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4Tr8hj0Lktz2BfZb; Thu, 7 Mar 2024 21:07:01 +0800 (CST) Received: from dggpeml500024.china.huawei.com (unknown [7.185.36.10]) by mail.maildlp.com (Postfix) with ESMTPS id 2A9FE1A016C; Thu, 7 Mar 2024 21:09:23 +0800 (CST) Received: from localhost.localdomain (10.50.165.33) by dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 7 Mar 2024 21:09:22 +0800 From: Chengwen Feng To: , , Subject: [PATCH v2 0/5] refine argparse library Date: Thu, 7 Mar 2024 13:07:37 +0000 Message-ID: <20240307130742.5578-1-fengchengwen@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240220131502.47510-1-fengchengwen@huawei.com> References: <20240220131502.47510-1-fengchengwen@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.50.165.33] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) 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 I found a couple of issues when I revisited the argparse_autotest output, so got this patchset. Chengwen Feng (5): argparse: refine error message argparse: remove dead code argparse: replace flag enum with marco argparse: fix argument flags operate as uint32 type test/argparse: refine testcases --- v2: address David Marchand's comment: - replace flag enum with marco. - replace flag's hardcode with macro in test_argparse.c. app/test/test_argparse.c | 68 ++++++++++++++++++-------------- lib/argparse/rte_argparse.c | 41 +++++++++---------- lib/argparse/rte_argparse.h | 78 ++++++++++++++++--------------------- 3 files changed, 90 insertions(+), 97 deletions(-) -- 2.17.1