From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6165215800F for ; Fri, 20 Jan 2023 07:24:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9FB16E0826; Fri, 20 Jan 2023 07:24:53 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 809D3E0826 for ; Fri, 20 Jan 2023 07:24:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 91B5B340C69 for ; Fri, 20 Jan 2023 07:24:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F411B62F for ; Fri, 20 Jan 2023 07:24:50 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1674199458.c3024463f81783169aba78ad93bfc0a0502f1daf.arthurzam@gentoo> Subject: [gentoo-commits] proj/pkgcore/snakeoil:master commit in: src/snakeoil/cli/ X-VCS-Repository: proj/pkgcore/snakeoil X-VCS-Files: src/snakeoil/cli/arghparse.py X-VCS-Directories: src/snakeoil/cli/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: c3024463f81783169aba78ad93bfc0a0502f1daf X-VCS-Branch: master Date: Fri, 20 Jan 2023 07:24:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6f39d336-d157-477c-bce6-d5f6560bf933 X-Archives-Hash: 52e51169365d353eccf4723c6a8437d5 commit: c3024463f81783169aba78ad93bfc0a0502f1daf Author: Arthur Zamarin gentoo org> AuthorDate: Fri Jan 20 07:24:18 2023 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Fri Jan 20 07:24:18 2023 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/snakeoil.git/commit/?id=c3024463 cli.arghparse: add missing comma in help metavar text Signed-off-by: Arthur Zamarin gentoo.org> src/snakeoil/cli/arghparse.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/snakeoil/cli/arghparse.py b/src/snakeoil/cli/arghparse.py index 375ffe42..a1d1c0b1 100644 --- a/src/snakeoil/cli/arghparse.py +++ b/src/snakeoil/cli/arghparse.py @@ -519,8 +519,7 @@ class _SubParser(argparse._SubParsersAction): Reverts the broken upstream change made in issue #9351 which causes issue #23058. This can be dropped when the problem is fixed upstream. """ - parser_name = values[0] - arg_strings = values[1:] + parser_name, *arg_strings = values # set the parser name if requested if self.dest is not argparse.SUPPRESS: @@ -555,7 +554,7 @@ class CsvHelpFormatter(argparse.HelpFormatter): ): result = "%s[,-%s,...]" % get_metavar(2) elif isinstance(action, (CommaSeparatedElements, CommaSeparatedElementsAppend)): - result = "%s[,-%s,+%s...]" % get_metavar(3) + result = "%s[,-%s,+%s,...]" % get_metavar(3) elif isinstance(action, Delayed): result = self._format_args(action.target, default_metavar) else: