ab3eac8939417716f3aa9d11a1df42c2b1ace069,src/python/pants/help/help_printer.py,HelpPrinter,_print_goals_help,#HelpPrinter#,58

Before Change



    max_width = max(len(name) for name in goal_descriptions.keys()) if goal_descriptions else 0
    for name, description in sorted(goal_descriptions.items()):
      print("  {}: {}".format(name.rjust(max_width), description))
    print()

  def _print_options_help(self):

After Change


    global_options = self._options.for_global_scope()
    goal_descriptions: Dict[str, str] = {}
    if global_options.v2:
      goal_scope_infos = [
        scope_info
        for scope_info in self._options.known_scope_to_info.values()
        if scope_info.category == ScopeInfo.GOAL
      ]
      for scope_info in goal_scope_infos:
        if scope_info.optionable_cls is None or not issubclass(scope_info.optionable_cls, GoalSubsystem):
          continue
        is_unimplemented = any(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: ab3eac8939417716f3aa9d11a1df42c2b1ace069
Time: 2020-02-03
Author: ericarellano@me.com
File Name: src/python/pants/help/help_printer.py
Class Name: HelpPrinter
Method Name: _print_goals_help


Project Name: pantsbuild/pants
Commit Name: e3073f0fd4cc62fef7bfbca23ffd360e2d6c8a6a
Time: 2014-02-11
Author: jsirois@twitter.com
File Name: src/python/twitter/pants/commands/goal.py
Class Name: List
Method Name: execute


Project Name: pantsbuild/pants
Commit Name: f9b1009b40b31d4dc7e71b558e0056488e904175
Time: 2014-08-21
Author: jinfeng@outlook.com
File Name: src/python/pants/backend/core/tasks/targets_help.py
Class Name: TargetsHelp
Method Name: _get_installed_targets