#!/usr/bin/env python3

import click

from exprec import dashboard


@click.command()
@click.option('--host', default='127.0.0.1', show_default=True, 
help="The hostname to listen on. Set this to '0.0.0.0' to have the server available externally as well")
@click.option('--port', default=8080, show_default=True, help="Port to listen to")
@click.option('--restore-button/--no-restore-button', default=False, show_default=True, help="Enables the 'Restore code' button in the experiment view")
def main(host, port, restore_button):
    dashboard.dashboard(host, port, restore_button)


if __name__ == "__main__":
    main()
