feat: log version

This commit is contained in:
Kevin Restaino
2024-01-08 16:47:53 -05:00
parent 1396d6d3ed
commit f3fe277017
3 changed files with 27 additions and 1 deletions
+7
View File
@@ -143,6 +143,11 @@ parser.add_argument(
help="limit to processing [NUM] artists from the start index",
)
parser.add_argument(
"-v", "--version", action="version", version=f"%(prog)s {__version__}"
)
args = parser.parse_args()
ARTIST_IDs = args.artist if args.artist else []
@@ -150,6 +155,8 @@ ALBUM_IDs = args.album if args.album else []
START = args.start
LIMIT = args.limit
logging.info(f"{BOLD}Version:{RESET} {LIGHT_YELLOW}sptnr v{__version__}{RESET}")
if args.preview:
logging.info(f"{LIGHT_YELLOW}Preview mode, no changes will be made.{RESET}")
PREVIEW = 1