From: Sebastian Ramacher Date: Sat, 28 Oct 2023 00:31:04 +0200 Subject: Make argv of main optional --- isrcsubmit.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/isrcsubmit.py b/isrcsubmit.py index 6c277fa..ba51290 100755 --- a/isrcsubmit.py +++ b/isrcsubmit.py @@ -1045,7 +1045,10 @@ def cleanup_isrcs(release, isrcs): user_input("(press when done with this ISRC) ") -def main(argv): +def main(argv=None): + if argv is None: + argv = sys.argv + global options global ws2