Skip to content
Snippets Groups Projects
Verified Commit 3c6f8c98 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

WIP: diagnostics sendmail

parent 3df99965
No related branches found
No related tags found
No related merge requests found
......@@ -55,10 +55,17 @@ def get_files():
def get_option(name, default=None):
_next = False
for arg in sys.argv:
if _next is True:
if arg.startswith("--"):
return True
return arg
if arg.startswith("--{}=".format(name)):
index = len(name) + 3
return arg[index:]
elif arg == "--{}".format(name):
_next = True
return default
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment