From patchwork Mon Feb 27 12:02:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Valerio X-Patchwork-Id: 1748666 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=JvF1uyxu; dkim-atps=neutral Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PQJz90NNsz1yWw for ; Mon, 27 Feb 2023 23:02:44 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id C9FFE60768; Mon, 27 Feb 2023 12:02:39 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org C9FFE60768 Authentication-Results: smtp3.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=JvF1uyxu X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m80k06ym9Gzi; Mon, 27 Feb 2023 12:02:38 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id D53206059E; Mon, 27 Feb 2023 12:02:37 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org D53206059E Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 92276C0032; Mon, 27 Feb 2023 12:02:37 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 8CC09C002B for ; Mon, 27 Feb 2023 12:02:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 5A30460B88 for ; Mon, 27 Feb 2023 12:02:36 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 5A30460B88 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0TN5fwS0xuSF for ; Mon, 27 Feb 2023 12:02:35 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 00965606C0 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by smtp3.osuosl.org (Postfix) with ESMTPS id 00965606C0 for ; Mon, 27 Feb 2023 12:02:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677499354; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vBpjp24NEqCTRUUkOgYq7qugXzi1OdPynFwiyW5etC8=; b=JvF1uyxut82lc9OiJ7egP0/byDf7tLtQkfktbtQMM3n3GkBQflDQGL7gO3Mypu0MjyD5HX qJG1HcNCSy8LL9OCgHxx6gSoY8nHcUvl9xWDYJ4UnTcEpwPafmvqVrpA/t1n9tmAicIBvL q+U2/zRtDvvEqe2X97GXIIsEA7R9HuY= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-491-Pq6K0ddrPqq2WEURlRKOYA-1; Mon, 27 Feb 2023 07:02:32 -0500 X-MC-Unique: Pq6K0ddrPqq2WEURlRKOYA-1 Received: by mail-wm1-f69.google.com with SMTP id k36-20020a05600c1ca400b003eac86e4387so5232677wms.8 for ; Mon, 27 Feb 2023 04:02:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677499351; h=content-transfer-encoding:mime-version:user-agent:message-id:date :cc:to:from:subject:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=vBpjp24NEqCTRUUkOgYq7qugXzi1OdPynFwiyW5etC8=; b=T8gHFgRTpios43F5j60Ea5oao5gjFW5dbQlVnmI4DvUDDBBm3RFoYnlgpISYhb88b1 IzPCW+N53sE1klv0VLTuA5a0t5FaH9XhZigR7DV27GHz7GNdBLV2a3TyoLrZ10B99Rz9 v2qjxu/A0wPAtHu5HYDTT8K1qlmyNS0UT62ktGkNsU8CY66PRBwL0AiCPsM+2G7XDZuB 5xRUqIW+ygUz+eI0pyPGYSE8L65jBIJHjcI9X6qZ1ZladcEJDDksySACp/ONE4H8dW2H X7u8TTRI5g0btzgNsyJ8xKDVyLzIVLthJotvJJELFhpID2F0B8kqWuxQmfThSrrPTRa3 Jl3w== X-Gm-Message-State: AO0yUKVSiskja7BYVvDUikfhuGfpQlYiq87jM2iOYqZY97cYuU8kdRok MwpupaMKeX6OQSuzFbDO2yi8f3RrjcMI0s5ryXjY6AtUdvMKL4MCaZGNrAcb7G33uqzqhK2YBwO d1tcmNQifoNUookp4cLqP2VhSBQqBOte5u4IOxRCFzb1zrTA3yc6m8Zu67nRV9JRlT/MpJMBSOp U= X-Received: by 2002:adf:fb0f:0:b0:2c7:b5ef:9695 with SMTP id c15-20020adffb0f000000b002c7b5ef9695mr6324018wrr.3.1677499350927; Mon, 27 Feb 2023 04:02:30 -0800 (PST) X-Google-Smtp-Source: AK7set/VfbQwf9XqH50QGB+RRCz6T3DxoTQHDNT/c0XPDwZxD2mPKIrKW1hU0m63WqOx4+VPgR6Fig== X-Received: by 2002:adf:fb0f:0:b0:2c7:b5ef:9695 with SMTP id c15-20020adffb0f000000b002c7b5ef9695mr6324000wrr.3.1677499350589; Mon, 27 Feb 2023 04:02:30 -0800 (PST) Received: from localhost (net-93-151-200-33.cust.dsl.teletu.it. [93.151.200.33]) by smtp.gmail.com with ESMTPSA id m33-20020a05600c3b2100b003eaee9e0d22sm9489435wms.33.2023.02.27.04.02.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 04:02:29 -0800 (PST) From: Paolo Valerio To: ovs-dev@openvswitch.org Date: Mon, 27 Feb 2023 13:02:29 +0100 Message-ID: <167749934774.3717671.17030093662637799219.stgit@fed.void> User-Agent: StGit/1.5 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Cc: i.maximets@ovn.org Subject: [ovs-dev] [PATCH 1/2] cli: add option to display the version from Cargo.toml. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Signed-off-by: Paolo Valerio --- src/cli/cli.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cli/cli.rs b/src/cli/cli.rs index a5b08e6..f8593e1 100644 --- a/src/cli/cli.rs +++ b/src/cli/cli.rs @@ -73,6 +73,7 @@ impl Debug for dyn SubCommand { /// /// packet-tracer is a tool for capturing networking-related events from the system using ebpf and analyzing them. #[derive(Args, Default, Debug)] +#[command(version)] pub(crate) struct MainConfig {} /// ThinCli handles the first (a.k.a "thin") round of Command Line Interface parsing.