public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/pkgcore/snakeoil:master commit in: src/snakeoil/cli/
Date: Fri, 20 Jan 2023 07:24:50 +0000 (UTC)	[thread overview]
Message-ID: <1674199458.c3024463f81783169aba78ad93bfc0a0502f1daf.arthurzam@gentoo> (raw)

commit:     c3024463f81783169aba78ad93bfc0a0502f1daf
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 20 07:24:18 2023 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> 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 <arthurzam <AT> 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:


             reply	other threads:[~2023-01-20  7:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-20  7:24 Arthur Zamarin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-04-08 19:37 [gentoo-commits] proj/pkgcore/snakeoil:master commit in: src/snakeoil/cli/ Arthur Zamarin
2023-01-16 21:00 Arthur Zamarin
2022-12-31  7:36 Arthur Zamarin
2022-12-30 19:03 Arthur Zamarin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1674199458.c3024463f81783169aba78ad93bfc0a0502f1daf.arthurzam@gentoo \
    --to=arthurzam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox