@click.command('serve_default_site')
@click.argument('state', type=click.Choice(['on', 'off']))
def config_serve_default_site(state):
 state = (True if (state == 'on') else False)
 update_config({'serve_default_site': state})

@ click . command ( 'serve_default_site' ) @ click . argument ( 'state' , type = click . Choice ( [ 'on' , 'off' ] ) ) def config_serve_default_site ( state ) : state = ( True if ( state == 'on' ) else False ) update_config ( { 'serve_default_site' : state } )
configure nginx to serve the default site on port 80 .