scripts: fix dl_cleanup.py argument handling
authorAndre Heider <a.heider@gmail.com>
Sat, 12 Nov 2022 08:50:36 +0000 (09:50 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 15 Nov 2022 13:45:50 +0000 (14:45 +0100)
commit9a2d362bf7296d955b3cb8ab625bf1ec25703f89
tree9c3095bbc9cb66565da7579efd668cc468aca157
parentc984fc762412f206ebeb3e873742988ff760fb90
scripts: fix dl_cleanup.py argument handling

The -w|--whitelist and -D|--download-dir arguments pass an additional value,
properly evaluate that.
Also allow to pass the download directory without -D|--download-dir, just as
the usage describes.
Finally fix spitting out the wrong error messages about those args.

Signed-off-by: Andre Heider <a.heider@gmail.com>
scripts/dl_cleanup.py