Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
czoido committed Dec 30, 2024
1 parent 44f61e0 commit ac895bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions conan/cli/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ac895bf

Please sign in to comment.