def main(args):
  # Parse the command line options
  options, args = Options.parseCommandLine(args)
  
  if options.verbose:
    Log.quiet = False

  if options.quiet:
    Log.quiet = True
    
  # If a project file was not given, present the possibilities
  if not options.project:
    projectFiles = getAvailableProjectFiles()
    try:
      projectFile = projectFiles[Console.chooseIndex("Choose a project file", [f[1] for f in projectFiles])][0]
    except __HOLE__:
      return
  else:
    projectFile = options.project

  # Read the project file
  project = Project.Project(options = options, fileName = projectFile)

  # Create the interactive analyzer  
  analyzer = Analyzer.InteractiveAnalyzer(project, options)
  
  if options.execute:
    for command in options.execute:
      try:
        analyzer.execute(command)
      except Analyzer.ExecutionError:
        return 1

  analyzer.run()
  return 0
dataset/ETHPy150Open skyostil/tracy/src/analyzer/TracyAnalyzer.py/main