From nobody Mon Feb 9 10:57:49 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1616054976; cv=none; d=zohomail.com; s=zohoarc; b=NmLn5OpYN4DoVwQrRMYOH1o6fei3UnFUKXFFjfYcptvzHAff/NGQUIygGz/Bpp8mslsr24mVpRkqyPoCAZUJKW3Yo3HRsZ0IrI5VHqBxWqxknAC4TPxutL4BtdxmG/HuxZQIZLR9aGO3lBFHxyJhck+NGHIgMNh5PnW2zM38ej0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1616054976; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=zj/vw9M3vwH+Bg/RgzwCwSPG5HF+zkaYga5Vvl+SUqI=; b=W8Z0/4UTYM7DrIlaUsmXm3xAaVumJxCSE3CN1n1XMUq+6BIIPRB8j6aJI+YhRINrFsWmsLPymWYJYCEh2GE3uNAuaekruKOftjNgJoDgQZFRqJWnWXxfuaMWeY3ADGDuPkY3B1Cf/nS/wcDANyRlUObqGsUwA72luB9C82SpDVs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1616054976179985.891576848636; Thu, 18 Mar 2021 01:09:36 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-153-OPurwyAPOw-yQcuLMFQpgw-1; Thu, 18 Mar 2021 04:09:32 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7A50FCC631; Thu, 18 Mar 2021 08:09:26 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F0F1017195; Thu, 18 Mar 2021 08:09:25 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id B03831809C83; Thu, 18 Mar 2021 08:09:24 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 12I89NYH030358 for ; Thu, 18 Mar 2021 04:09:23 -0400 Received: by smtp.corp.redhat.com (Postfix) id 5C6B21F41B; Thu, 18 Mar 2021 08:09:23 +0000 (UTC) Received: from nautilus.redhat.com (unknown [10.40.192.180]) by smtp.corp.redhat.com (Postfix) with ESMTP id AA4FC19C45; Thu, 18 Mar 2021 08:09:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616054974; h=from:from:sender:sender: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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=zj/vw9M3vwH+Bg/RgzwCwSPG5HF+zkaYga5Vvl+SUqI=; b=OEjPhetsTNx+nSufdgx4F7BiCT399oTJmDa87tlOC2M4DhjD7wyIKUA30J7Yz1eRkFvC62 Hx06I8mbM0PJkDCaqxd2ErBWphdE+FGXiK3BxcMuCUNnTh5Rj2n/j8GCk3Kp1xf4fkoJih ENfW+IQx/qDPOh3sN7BqIh1mi10GhTY= X-MC-Unique: OPurwyAPOw-yQcuLMFQpgw-1 From: Erik Skultety To: libvir-list@redhat.com Subject: [libvirt PATCH v3 1/6] ci: helper: Use the ArgumentDefaultsHelpFormatter help formatter Date: Thu, 18 Mar 2021 09:09:12 +0100 Message-Id: <5f3358ec1369ddf6022b34d02c6377b99d5c7009.1616054919.git.eskultet@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Cc: eskultet@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" This help formatter class reports the defaults we use for options taking an argument. Signed-off-by: Erik Skultety Reviewed-by: Andrea Bolognani --- ci/helper | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci/helper b/ci/helper index 73a3f729da..8f34f4b59d 100755 --- a/ci/helper +++ b/ci/helper @@ -79,6 +79,7 @@ class Parser: "build", help=3D"run a build in a container", parents=3D[containerparser, mesonparser], + formatter_class=3Dargparse.ArgumentDefaultsHelpFormatter, ) buildparser.set_defaults(func=3DApplication.action_build) =20 @@ -87,6 +88,7 @@ class Parser: "test", help=3D"run a build in a container (including tests)", parents=3D[containerparser, mesonparser], + formatter_class=3Dargparse.ArgumentDefaultsHelpFormatter, ) testparser.set_defaults(func=3DApplication.action_test) =20 @@ -95,6 +97,7 @@ class Parser: "shell", help=3D"start a shell in a container", parents=3D[containerparser], + formatter_class=3Dargparse.ArgumentDefaultsHelpFormatter, ) shellparser.set_defaults(func=3DApplication.action_shell) =20 @@ -102,6 +105,7 @@ class Parser: listimagesparser =3D subparsers.add_parser( "list-images", help=3D"list known container images", + formatter_class=3Dargparse.ArgumentDefaultsHelpFormatter, ) listimagesparser.set_defaults(func=3DApplication.action_list_image= s) =20 @@ -110,6 +114,7 @@ class Parser: "refresh", help=3D"refresh data generated with lcitool", parents=3D[lcitoolparser], + formatter_class=3Dargparse.ArgumentDefaultsHelpFormatter, ) refreshparser.set_defaults(func=3DApplication.action_refresh) =20 --=20 2.29.2