Update the cli to reflect the version.

This commit is contained in:
Hunter Jozwiak 2025-01-30 17:15:01 -05:00
parent 0347c2fe6f
commit a2b7af9ad1

View File

@ -8,14 +8,15 @@ import sys
import inspect import inspect
import argparse import argparse
from daemonize import Daemonize from daemonize import Daemonize
from . import fenrirVersion
# Get the fenrir installation path # Get the fenrir installation path
fenrirPath = os.path.dirname(os.path.realpath(os.path.abspath(inspect.getfile(inspect.currentframe())))) fenrirPath = os.path.dirname(os.path.realpath(os.path.abspath(inspect.getfile(inspect.currentframe()))))
if not fenrirPath in sys.path: if fenrirPath not in sys.path:
sys.path.append(fenrirPath) sys.path.append(fenrirPath)
from .core import fenrirManager from .core import fenrirManager
from . import fenrirVersion
def create_argument_parser(): def create_argument_parser():
"""Create and return the argument parser for Fenrir""" """Create and return the argument parser for Fenrir"""
@ -26,7 +27,7 @@ def create_argument_parser():
argumentParser.add_argument( argumentParser.add_argument(
'-v', '--version', '-v', '--version',
action='version', action='version',
version=f'Fenrir screen reader version {fenrirVersion.version}-{fenrirVersion.codeName}', version=f'Fenrir screen reader version {fenrirVersion}',
help='Show version information and exit' help='Show version information and exit'
) )
argumentParser.add_argument( argumentParser.add_argument(