Skip to content

Commit

Permalink
Fix version notification
Browse files Browse the repository at this point in the history
  • Loading branch information
aghozlane committed Mar 11, 2024
1 parent 34ec1fe commit 4740280
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions meteor/meteor.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

"""Meteor - A plateform for quantitative metagenomic profiling of complex ecosystems"""

__version__ = "3.4.0"

import sys
import logging
Expand All @@ -29,7 +28,7 @@
from meteor.strain import Strain
from meteor.treebuilder import TreeBuilder
from tempfile import TemporaryDirectory
import importlib.metadata
from importlib.metadata import version


class Color:
Expand Down Expand Up @@ -122,7 +121,7 @@ def get_arguments() -> Namespace: # pragma: no cover
"""
parser = ArgumentParser(description=Color.BOLD + __doc__ + Color.END, prog="Meteor")
parser.add_argument(
"--version", action="version", version=f"%(prog)s {__version__}"
"--version", action="version", version=f"%(prog)s version { version('meteor')}"
)
subparsers = parser.add_subparsers(
title="positional arguments",
Expand Down

0 comments on commit 4740280

Please sign in to comment.