code: def main():
      
      parser = __build_option_parser()
      args = parser.parse_args()
      analyze_ws = AnalyzeWS(args)
      try:
          analyze_ws.set_file(args.file_[0])
      except IOError:
          print 'IOError raised while reading file. Exiting!'
          sys.exit(3)
  
      # Start the chosen mode
      if args.to_file or args.to_browser:
          analyze_ws.to_file_mode()
          if args.to_browser:
              analyze_ws.to_browser_mode()
      else:
          analyze_ws.interactive_mode()
docs: Main method of the script