From d8b0103321d6dec273f4dec2e163325406fd0381 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Mon, 22 Jul 2019 13:04:25 -0700 Subject: [PATCH] Handle blank description in _print_goals_help If there is no description for a scope_info goal, print out a message to this effect associated with that goal rather than just a blank line. --- src/python/pants/help/help_printer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/python/pants/help/help_printer.py b/src/python/pants/help/help_printer.py index f5f3c1157432..e415c73a55bb 100644 --- a/src/python/pants/help/help_printer.py +++ b/src/python/pants/help/help_printer.py @@ -52,7 +52,8 @@ def _print_goals_help(self): for scope_info in self._options.known_scope_to_info.values(): if scope_info.category not in (ScopeInfo.GOAL, ScopeInfo.GOAL_V1): continue - goal_descriptions[scope_info.scope] = scope_info.description + description = scope_info.description or "" + goal_descriptions[scope_info.scope] = description goal_descriptions.update({goal.name: goal.description_first_line for goal in Goal.all() if goal.description})