def _GenDiscoveryDocCallback(args, discovery_func=GenDiscoveryDoc):
  services, doc_format, output_path, hostname = (
      args.service, args.format, args.output, args.hostname)
  discovery_paths = discovery_func(services, doc_format,
                                   output_path, hostname=hostname)
  for discovery_path in discovery_paths:
    print 'API discovery document written to %s' % discovery_path
Generate discovery docs to files.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/endpointscfg.py/_GenDiscoveryDocCallback