[util] add range check to --resolution option and add contributors to copyright

This commit is contained in:
Stefan Riesenberger 2022-02-04 12:52:20 +01:00
parent dcb59ee9de
commit 484bd933eb
1 changed files with 10 additions and 2 deletions

View File

@ -1,7 +1,8 @@
#!/usr/bin/env python3
###########################################################################
# Copyright (C) 2022 Stefan Riesenberger
# Copyright (C) 2022 Stefan Riesenberger, Miepee, famfo
#
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -100,7 +101,14 @@ def main():
# this will error out on invalid argument configurations
args = parser.parse_args()
sizes = args.resolution # this is None when no argument is supplied
sizes = None
for res in args.resolution or []:
print(f"asd{res}")
if res > 0 and res < 2147483647:
if not sizes:
sizes = []
sizes.append(res)
files = []
# if "git" parameter was specified, regenerate since last tag + create git commit