@click.command('add-domain')
@click.argument('domain')
@click.option('--site', prompt=True)
@click.option('--ssl-certificate', help='Absolute path to SSL Certificate')
@click.option('--ssl-certificate-key', help='Absolute path to SSL Certificate Key')
def add_domain(domain, site=None, ssl_certificate=None, ssl_certificate_key=None):
 from bench.config.site_config import add_domain
 if (not site):
  print 'Please specify site'
  sys.exit(1)
 add_domain(site, domain, ssl_certificate, ssl_certificate_key, bench_path='.')

@ click . command ( 'add-domain' ) @ click . argument ( 'domain' ) @ click . option ( '--site' , prompt = True ) @ click . option ( '--ssl-certificate' , help = 'Absolute path to SSL Certificate' ) @ click . option ( '--ssl-certificate-key' , help = 'Absolute path to SSL Certificate Key' ) def add_domain ( domain , site = None , ssl_certificate = None , ssl_certificate_key = None ) : from bench . config . site_config import add_domain if ( not site ) : print 'Please specify site' sys . exit ( 1 ) add_domain ( site , domain , ssl_certificate , ssl_certificate_key , bench_path = '.' )
add custom domain to site .