code: def _GenOpenApiSpecCallback(args, openapi_func=_GenOpenApiSpec):
    
    openapi_paths = openapi_func(args.service, args.output,
                                 hostname=args.hostname,
                                 application_path=args.application,
                                 x_google_api_name=args.x_google_api_name)
    for openapi_path in openapi_paths:
      print 'OpenAPI spec written to %s' % openapi_path
docs: Generate OpenAPI (Swagger) specs to files.
  
    Args:
      args: An argparse.Namespace object to extract parameters from
      openapi_func: A function that generates OpenAPI specs and stores them to
        files, accepting a list of service names and an output directory.