Skip to content

Commit

Permalink
fix: version issue for binaries (from #76)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Feb 6, 2024
1 parent d43e832 commit 2ed65c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions smassh/__main__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from importlib.metadata import version as pkgVersion
import click
from smassh.src.plugins.add_language import AddLanguage
from smassh.ui.tui import Smassh

PKG_VERSION = "3.1.0"


@click.group(
context_settings={"help_option_names": ["-h", "--help"]},
Expand All @@ -17,7 +18,7 @@
@click.pass_context
def main(ctx, version: bool) -> None:
if version:
return print(f"smassh - v{pkgVersion('smassh')}")
return print(f"smassh - v{PKG_VERSION}")

if ctx.invoked_subcommand is None:
Smassh().run()
Expand Down

0 comments on commit 2ed65c1

Please sign in to comment.