From nobody Sun Feb 8 22:59:37 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=1615916000; cv=none; d=zohomail.com; s=zohoarc; b=ThDoPHgIIOC+qs3a2xu30YTL+NZi5LnTfBckPrdf8vdv3RBUhrehxkaD2yZZ+pWO32Jgg6YlAH9MpXcNCR/QWw6g7Z8f6iCetmVZuk6bLBMZKHEC6oBRqnWGwetrz/xni/U0w+LvZXu798QQYR1cMjwdgyKpKaMgdVTnCrcfaSs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615916000; 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=Gv/0jkmVL2YY/lrwbw0WN2RBpR+JnKCxmULzBdlhFRI=; b=lWdYGtDCyiGBCNY50vj7fcydCRjn58ETvwEvbDyghNrlewkZxIKZ50veaYw0dJMNGQRanT5IEa0z1lUG1G93nA9iXShyVbst7X6sZ+qtkaoKp5FiTp7Yh8GIYkr/nR/15odvSeVHT+g0aJ3qtZz47Y0pynxOT6fEYGNJN5xLiAg= 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 1615916000639812.091971127569; Tue, 16 Mar 2021 10:33:20 -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-379-oPMeXrsXNZKAHdTLx0cAOQ-1; Tue, 16 Mar 2021 13:33:16 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 18FD7800C78; Tue, 16 Mar 2021 17:33:10 +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 C9FB71001B2C; Tue, 16 Mar 2021 17:33:09 +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 843861800657; Tue, 16 Mar 2021 17:33:09 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 12GHX7r6011383 for ; Tue, 16 Mar 2021 13:33:07 -0400 Received: by smtp.corp.redhat.com (Postfix) id 2DEAA5C1C2; Tue, 16 Mar 2021 17:33:07 +0000 (UTC) Received: from nautilus.redhat.com (unknown [10.40.192.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7CD105C1A1; Tue, 16 Mar 2021 17:33:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615915999; 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=Gv/0jkmVL2YY/lrwbw0WN2RBpR+JnKCxmULzBdlhFRI=; b=GSZUKFnPXJElBUSXY94OIh8ghph8DaZA5sPDRBO3WVFFYuDKkgNcGXmlMxRsjJp+rN6U6F vctrscpEEpm6by/NRmo0go173u+Yt0ElDgA+hcvS9BDdKprKxvJBy9/bVwB32bApYA+1jP XxxFzfzpFFsXQaAZ88j4HAZL3zKgDsM= X-MC-Unique: oPMeXrsXNZKAHdTLx0cAOQ-1 From: Erik Skultety To: libvir-list@redhat.com Subject: [libvirt PATCH v2 2/6] ci: helper: Use the ArgumentDefaultsHelpFormatter help formatter Date: Tue, 16 Mar 2021 18:32:56 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 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.84 on 10.5.11.22 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