def _GenDiscoveryDocCallback(args, discovery_func=GenDiscoveryDoc):
  """Generate discovery docs to files.

  Args:
    args: An argparse.Namespace object to extract parameters from
    discovery_func: A function that generates discovery docs and stores them to
      files, accepting a list of service names, a discovery doc format, and an
      output directory.
  """
  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
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/endpointscfg.py/_GenDiscoveryDocCallback/operator `%` -> `-`