Skip to content

Commit

Permalink
deprecate --key
Browse files Browse the repository at this point in the history
  • Loading branch information
Koncopd committed Oct 15, 2024
1 parent 68203ce commit f723216
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lamin_cli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def main():

@main.command()
@click.argument("user", type=str, default=None, required=False)
@click.option("--key", type=str, default=None, help="The API key.")
@click.option("--key", type=str, default=None, help="The legacy API key.")
def login(user: str, key: Optional[str]):
"""Log into LaminHub.
Expand All @@ -118,6 +118,12 @@ def login(user: str, key: Optional[str]):
else:
api_key = None

if key is not None:
click.echo(
"--key is deprecated and will be removed in the future, "
"use `lamin login` and enter your API key."
)

return login_(user, key=key, api_key=api_key)


Expand Down

0 comments on commit f723216

Please sign in to comment.