Update the cli to reflect the version.
This commit is contained in:
parent
0347c2fe6f
commit
a2b7af9ad1
@ -8,14 +8,15 @@ import sys
|
||||
import inspect
|
||||
import argparse
|
||||
from daemonize import Daemonize
|
||||
from . import fenrirVersion
|
||||
|
||||
# Get the fenrir installation path
|
||||
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)
|
||||
|
||||
from .core import fenrirManager
|
||||
from . import fenrirVersion
|
||||
|
||||
|
||||
def create_argument_parser():
|
||||
"""Create and return the argument parser for Fenrir"""
|
||||
@ -26,7 +27,7 @@ def create_argument_parser():
|
||||
argumentParser.add_argument(
|
||||
'-v', '--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'
|
||||
)
|
||||
argumentParser.add_argument(
|
||||
|
Loading…
Reference in New Issue
Block a user