mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 09:29:05 +08:00
[CLI] Add version option (#8886)
Closes https://github.com/ray-project/ray/issues/8878.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user