forked from Riesi/frog_emojis_old
[util] add range check to --resolution option and add contributors to copyright
This commit is contained in:
parent
dcb59ee9de
commit
484bd933eb
12
gen_png.py
12
gen_png.py
|
@ -1,7 +1,8 @@
|
||||||
#!/usr/bin/env python3
|
#!/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
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -99,8 +100,15 @@ def main():
|
||||||
"Requires 'git' to be installed and located in PATH.")
|
"Requires 'git' to be installed and located in PATH.")
|
||||||
# this will error out on invalid argument configurations
|
# this will error out on invalid argument configurations
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
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)
|
||||||
|
|
||||||
sizes = args.resolution # this is None when no argument is supplied
|
|
||||||
files = []
|
files = []
|
||||||
|
|
||||||
# if "git" parameter was specified, regenerate since last tag + create git commit
|
# if "git" parameter was specified, regenerate since last tag + create git commit
|
||||||
|
|
Loading…
Reference in New Issue