Display version number
The program will now output a version number with the use of either the 'version' or 'help' options.
This commit is contained in:
parent
26dfe543a1
commit
5856541a22
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user