[CLI] Add version option (#8886)

Closes https://github.com/ray-project/ray/issues/8878.
This commit is contained in:
Sumanth Ratna
2020-06-10 21:12:00 -04:00
committed by GitHub
parent 46dfd53c7d
commit 439dbb7822
+1
View File
@@ -60,6 +60,7 @@ def check_no_existing_redis_clients(node_ip_address, redis_client):
default=ray_constants.LOGGER_FORMAT,
type=str,
help=ray_constants.LOGGER_FORMAT_HELP)
@click.version_option()
def cli(logging_level, logging_format):
level = logging.getLevelName(logging_level.upper())
ray.utils.setup_logger(level, logging_format)