Skip to content

Commit

Permalink
Add --version option to the CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Feb 4, 2024
1 parent da1cdaf commit 6c14b65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions osam/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import uvicorn
from loguru import logger

from osam import __version__
from osam import _humanize
from osam import _models
from osam import _tabulate
Expand All @@ -18,6 +19,7 @@


@click.group(context_settings=dict(help_option_names=["-h", "--help"]))
@click.version_option(__version__)
def cli():
logger.remove(0)
logger.add(
Expand Down

0 comments on commit 6c14b65

Please sign in to comment.