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)

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 .