Skip to content

Commit

Permalink
Handle blank description in _print_goals_help
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gshuflin committed Sep 25, 2019
1 parent 63d443c commit e67ea42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/python/pants/help/help_printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<no description>"
goal_descriptions[scope_info.scope] = description
goal_descriptions.update({goal.name: goal.description_first_line
for goal in Goal.all()
if goal.description})
Expand Down

0 comments on commit e67ea42

Please sign in to comment.