@click.command(u'run-patch')
@click.argument(u'module')
@pass_context
def run_patch(context, module):
 import frappe.modules.patch_handler
 for site in context.sites:
  frappe.init(site=site)
  try:
   frappe.connect()
   frappe.modules.patch_handler.run_single(module, force=context.force)
  finally:
   frappe.destroy()

@ click . command ( u'run-patch' ) @ click . argument ( u'module' ) @ pass_context def run_patch ( context , module ) : import frappe . modules . patch_handler for site in context . sites : frappe . init ( site = site ) try : frappe . connect ( ) frappe . modules . patch_handler . run_single ( module , force = context . force ) finally : frappe . destroy ( )
run a particular patch .