From ac895bfcc347e5e50ad01651ee619bc406fe7940 Mon Sep 17 00:00:00 2001 From: czoido Date: Mon, 30 Dec 2024 17:27:15 +0100 Subject: [PATCH] minor changes --- conan/cli/command.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/conan/cli/command.py b/conan/cli/command.py index abba611a639..db8bae80579 100644 --- a/conan/cli/command.py +++ b/conan/cli/command.py @@ -64,8 +64,9 @@ def _help_formatters(self): return [formatter for formatter in self._formatters if formatter != "text"] def _init_formatters(self, parser): - if self._help_formatters: - help_message = "Select the output format: {}".format(", ".join(self._help_formatters)) + formatters = self._help_formatters + if formatters: + help_message = "Select the output format: {}".format(", ".join(formatters)) parser.add_argument('-f', '--format', action=OnceArgument, help=help_message) parser.add_argument("--out-file", action=OnceArgument,