[ray] Add --new flag for ray attach (#2973)

* new flag

* yapf
This commit is contained in:
Eric Liang
2018-09-29 23:04:13 -07:00
committed by GitHub
parent cb56f39070
commit cf9cd5da9d
2 changed files with 18 additions and 4 deletions
+4 -2
View File
@@ -478,8 +478,10 @@ def teardown(cluster_config_file, yes, workers_only, cluster_name):
required=False,
type=str,
help=("Override the configured cluster name."))
def attach(cluster_config_file, start, tmux, cluster_name):
attach_cluster(cluster_config_file, start, tmux, cluster_name)
@click.option(
"--new", "-N", is_flag=True, help=("Force creation of a new screen."))
def attach(cluster_config_file, start, tmux, cluster_name, new):
attach_cluster(cluster_config_file, start, tmux, cluster_name, new)
@cli.command()