Skip to content

Commit

Permalink
fix: options are not required (#4861)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
xianml and pre-commit-ci[bot] committed Jul 16, 2024
1 parent d80af26 commit 27ddfa3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bentoml_cli/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -43,13 +41,15 @@ def cloud_command():
envvar="BENTO_CLOUD_API_ENDPOINT",
show_default=True,
show_envvar=True,
required=False,
)
@cog.optgroup.option(
"--api-token",
type=click.STRING,
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)
Expand Down

0 comments on commit 27ddfa3

Please sign in to comment.