diff options
author | 2023-01-20 09:24:18 +0200 | |
---|---|---|
committer | 2023-01-20 09:24:18 +0200 | |
commit | c3024463f81783169aba78ad93bfc0a0502f1daf (patch) | |
tree | 5f967a770a015b3c407267b9380250f9b98db2e3 | |
parent | formatters: add typing annotations (diff) | |
download | snakeoil-c3024463f81783169aba78ad93bfc0a0502f1daf.tar.gz snakeoil-c3024463f81783169aba78ad93bfc0a0502f1daf.tar.bz2 snakeoil-c3024463f81783169aba78ad93bfc0a0502f1daf.zip |
cli.arghparse: add missing comma in help metavar text
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r-- | src/snakeoil/cli/arghparse.py | 5 |
1 files 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: |