Compare commits

...

1 Commits

Author SHA1 Message Date
5856541a22 Display version number
The program will now output a version number with the use of either the 'version' or 'help' options.
2024-10-15 15:06:54 -04:00

View File

@ -1,11 +1,19 @@
#!/usr/bin/env python3
import argparse
import configparser
import os
from time import sleep
import dir_activities
import api_calls
gaa_version = "2024.10.15.2"
option_set = argparse.ArgumentParser(description=f"An automatic downloader of artist art using MusicBrainz and Fanart.TV.\nVersion: {gaa_version}")
jls_extract_var = f'%(prog)s {gaa_version}'
option_set.add_argument('--version', '-v', action='version', version=jls_extract_var)
cmd_options = option_set.parse_args()
config = configparser.ConfigParser()
if (os.path.exists('config.ini')):
conf_path = 'config.ini'