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 via email to