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 512DB423A1; Tue, 10 Jan 2023 08:31:59 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2124D42D1E; Tue, 10 Jan 2023 08:31:59 +0100 (CET) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by mails.dpdk.org (Postfix) with ESMTP id 4087840689 for ; Tue, 10 Jan 2023 08:31:58 +0100 (CET) Received: from kwepemm600004.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Nrj7L751tzqTkf; Tue, 10 Jan 2023 15:27:10 +0800 (CST) Received: from localhost.localdomain (10.28.79.22) by kwepemm600004.china.huawei.com (7.193.23.242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 10 Jan 2023 15:31:56 +0800 From: Huisong Li To: CC: , , , , , , Subject: [PATCH v2 0/2] usertools: usertools: use argparse to get input and add an argument Date: Tue, 10 Jan 2023 15:31:44 +0800 Message-ID: <20230110073146.8221-1-lihuisong@huawei.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20230109065547.8819-1-lihuisong@huawei.com> References: <20230109065547.8819-1-lihuisong@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.28.79.22] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemm600004.china.huawei.com (7.193.23.242) X-CFilter-Loop: Reflected 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 The telemetry client script uses argparse to get local socket file path and file prefix path. --- v2: use an optional positional arguments for local socket path to keep backward compatibility. Huisong Li (2): usertools: use argparse module to get input parameter usertools: add an argument for file prefix usertools/dpdk-telemetry-client.py | 39 ++++++++++++++++++++++++------ 1 file changed, 31 insertions(+), 8 deletions(-) -- 2.22.0