32479c73b83a9a875a28d1adce327573b39af37e,src/python/pants/commands/goal.py,Goal,setup_parser,#Goal#Any#Any#,233

Before Change


    if not args:
      args.append("goals")

    if len(args) == 1 and args[0] in set(["-h", "--help", "help"]):
      def format_usage(usages):
        left_colwidth = 0
        for left, right in usages:

After Change


      args.append("help")

    help_flags = set(["-h", "--help", "help"])
    show_help = len(help_flags.intersection(args)) > 0
    args = filter(lambda f: f not in help_flags, args)

    goals, specs = Goal.parse_args(args)
    if show_help:
      print_help(goals)
      sys.exit(0)

    self.requested_goals = goals

    with self.run_tracker.new_workunit(name="setup", labels=[WorkUnit.SETUP]):
      // Bootstrap goals by loading any configured bootstrap BUILD files
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 32479c73b83a9a875a28d1adce327573b39af37e
Time: 2014-04-30
Author: benjy@foursquare.com
File Name: src/python/pants/commands/goal.py
Class Name: Goal
Method Name: setup_parser


Project Name: pantsbuild/pants
Commit Name: 32479c73b83a9a875a28d1adce327573b39af37e
Time: 2014-04-30
Author: benjy@foursquare.com
File Name: src/python/pants/bin/pants_exe.py
Class Name:
Method Name: _run


Project Name: pyinstaller/pyinstaller
Commit Name: f1a093ebed17dab737153888733c06ed807b6746
Time: 2015-05-11
Author: h.goebel@crazy-compilers.com
File Name: PyInstaller/depend/analysis.py
Class Name: TOC
Method Name: intersect