85003848427566f9611a79009c083600f22d9043,src/python/pants/help/help_printer.py,HelpPrinter,_print_options_help,#HelpPrinter#,128

Before Change


        

        help_request = cast(OptionsHelp, self._help_request)
        global_options = self._options.for_global_scope()

        if help_request.all_scopes:
            help_scopes = set(self._options.known_scope_to_info.keys())
        else:
            // The scopes explicitly mentioned by the user on the cmd line.
            help_scopes = set(self._options.scope_to_flags.keys()) - {GLOBAL_SCOPE}

        // If --v1 is enabled at all, don"t use v2_help, even if --v2 is also enabled.
        v2_help = global_options.v2 and not global_options.v1

        scope_info_iterator = ScopeInfoIterator(
            scope_to_info=self._options.known_scope_to_info, v2_help=v2_help
        )

After Change


            // The scopes explicitly mentioned by the user on the cmd line.
            help_scopes = set(self._options.scope_to_flags.keys()) - {GLOBAL_SCOPE}

        scope_infos = list(self._options.known_scope_to_info[scope] for scope in help_scopes)
        if scope_infos:
            for scope_info in scope_infos:
                help_str = self._format_help(scope_info, help_request.advanced)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: 85003848427566f9611a79009c083600f22d9043
Time: 2020-07-02
Author: benjyw@gmail.com
File Name: src/python/pants/help/help_printer.py
Class Name: HelpPrinter
Method Name: _print_options_help


Project Name: pantsbuild/pants
Commit Name: 02a2d327ab2d25aec3a28d5c0b7f594c346f33b4
Time: 2020-07-07
Author: benjyw@gmail.com
File Name: src/python/pants/help/help_printer.py
Class Name: HelpPrinter
Method Name: _print_goals_help


Project Name: pantsbuild/pants
Commit Name: 9cde7c0f67be8c8c4aba71315d8875171d939992
Time: 2021-01-07
Author: stuhood@gmail.com
File Name: src/python/pants/bin/local_pants_runner.py
Class Name: LocalPantsRunner
Method Name: _get_workunits_callbacks