From 27ddfa39635a68408eb6a180859eebfba3613d7c Mon Sep 17 00:00:00 2001 From: "xianxian.zhang" <141706136+xianml@users.noreply.github.com> Date: Tue, 16 Jul 2024 13:02:07 +0800 Subject: [PATCH] fix: options are not required (#4861) * fix: options are not required * ci: auto fixes from pre-commit.ci For more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- src/bentoml_cli/cloud.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bentoml_cli/cloud.py b/src/bentoml_cli/cloud.py index 5342fdebf04..33840f7e07d 100644 --- a/src/bentoml_cli/cloud.py +++ b/src/bentoml_cli/cloud.py @@ -32,9 +32,7 @@ def cloud_command(): @cloud_command.command() -@cog.optgroup.group( - "Login", help="Required login options", cls=cog.RequiredAllOptionGroup -) +@cog.optgroup.group("Login", help="login options") @cog.optgroup.option( "--endpoint", type=click.STRING, @@ -43,6 +41,7 @@ def cloud_command(): envvar="BENTO_CLOUD_API_ENDPOINT", show_default=True, show_envvar=True, + required=False, ) @cog.optgroup.option( "--api-token", @@ -50,6 +49,7 @@ def cloud_command(): help="BentoCloud or Yatai user API token", envvar="BENTO_CLOUD_API_KEY", show_envvar=True, + required=False, ) @click.pass_obj def login(shared_options: SharedOptions, endpoint: str, api_token: str) -> None: # type: ignore (not accessed)