Skip to content

Commit

Permalink
Add click version option for client
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Nov 5, 2023
1 parent 18b882a commit 08128c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions optimade/client/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import click
import rich

from optimade import __api_version__, __version__
from optimade.client.client import OptimadeClient

if TYPE_CHECKING: # pragma: no cover
Expand All @@ -23,6 +24,10 @@


@click.command("optimade-get", no_args_is_help=True)
@click.version_option(
__version__,
prog_name=f"optimade-get, an async OPTIMADE v{__api_version__} client",
)
@click.option(
"--filter",
default=[None],
Expand Down

0 comments on commit 08128c0

Please sign in to comment.