Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle blank description in _print_goals_help #8088

Merged
merged 1 commit into from
Sep 26, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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