Cover Detail
Show a cover letter.
GET /api/covers/453/?format=api
http://patches.dpdk.org/api/covers/453/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/cover/20231204075048.894-1-fengchengwen@huawei.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20231204075048.894-1-fengchengwen@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20231204075048.894-1-fengchengwen@huawei.com", "date": "2023-12-04T07:50:42", "name": "[RFC,v2,0/6] add argparse library", "submitter": { "id": 2146, "url": "http://patches.dpdk.org/api/people/2146/?format=api", "name": "fengchengwen", "email": "fengchengwen@huawei.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/cover/20231204075048.894-1-fengchengwen@huawei.com/mbox/", "series": [ { "id": 30439, "url": "http://patches.dpdk.org/api/series/30439/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30439", "date": "2023-12-04T07:50:42", "name": "add argparse library", "version": 2, "mbox": "http://patches.dpdk.org/series/30439/mbox/" } ], "comments": "http://patches.dpdk.org/api/covers/453/comments/", "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 948174365D;\n\tMon, 4 Dec 2023 08:54:05 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E506A40685;\n\tMon, 4 Dec 2023 08:54:00 +0100 (CET)", "from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187])\n by mails.dpdk.org (Postfix) with ESMTP id 290BB4067B\n for <dev@dpdk.org>; Mon, 4 Dec 2023 08:53:59 +0100 (CET)", "from dggpeml500024.china.huawei.com (unknown [172.30.72.57])\n by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4SkG6V4KK0zsRmq;\n Mon, 4 Dec 2023 15:50:10 +0800 (CST)", "from localhost.localdomain (10.50.165.33) by\n dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2507.35; Mon, 4 Dec 2023 15:53:55 +0800" ], "From": "Chengwen Feng <fengchengwen@huawei.com>", "To": "<dev@dpdk.org>, <thomas@monjalon.net>, <ferruh.yigit@amd.com>,\n <stephen@networkplumber.org>", "CC": "<tangkunshan@huawei.com>", "Subject": "[RFC v2 0/6] add argparse library", "Date": "Mon, 4 Dec 2023 07:50:42 +0000", "Message-ID": "<20231204075048.894-1-fengchengwen@huawei.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20231121122651.7078-1-fengchengwen@huawei.com>", "References": "<20231121122651.7078-1-fengchengwen@huawei.com>", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Originating-IP": "[10.50.165.33]", "X-ClientProxiedBy": "dggems701-chm.china.huawei.com (10.3.19.178) To\n dggpeml500024.china.huawei.com (7.185.36.10)", "X-CFilter-Loop": "Reflected", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "Introduce argparse library (which was inspired by the thread [1]),\ncompared with getopt, it makes it easy to write user-friendly\ncommand-like program.\n\nNote: the [1/6] commit contains usage examples.\n\n[1] https://patchwork.dpdk.org/project/dpdk/patch/20231105054539.22303-2-fengchengwen@huawei.com/\n\nChengwen Feng (6):\n argparse: add argparse library\n argparse: support verify argument config\n test/argparse: add verify argument config test\n argparse: support parse parameters\n test/argparse: add parse parameters test\n examples/dma: replace getopt with argparse\n\n---\nv2: refine the definition, add implement code, add examples which\n address Stephen's comments.\n\n app/test/meson.build | 1 +\n app/test/test_argparse.c | 764 +++++++++++++++++++++++++\n doc/api/doxy-api-index.md | 1 +\n doc/api/doxy-api.conf.in | 1 +\n doc/guides/prog_guide/argparse_lib.rst | 142 +++++\n doc/guides/prog_guide/index.rst | 1 +\n examples/dma/dmafwd.c | 288 +++++-----\n examples/dma/meson.build | 2 +-\n lib/argparse/meson.build | 7 +\n lib/argparse/rte_argparse.c | 611 ++++++++++++++++++++\n lib/argparse/rte_argparse.h | 179 ++++++\n lib/argparse/version.map | 7 +\n lib/meson.build | 1 +\n 13 files changed, 1846 insertions(+), 159 deletions(-)\n create mode 100644 app/test/test_argparse.c\n create mode 100644 doc/guides/prog_guide/argparse_lib.rst\n create mode 100644 lib/argparse/meson.build\n create mode 100644 lib/argparse/rte_argparse.c\n create mode 100644 lib/argparse/rte_argparse.h\n create mode 100644 lib/argparse/version.map" }{ "id": 453, "url": "