Verified implementation for #6 and #7

This commit is contained in:
Anton Hvornum 2019-04-08 20:29:49 +02:00
parent bc0a61b3c6
commit 9c572a3204
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ positionals = []
for arg in sys.argv[1:]:
if '--' == arg[:2]:
if '=' in arg:
key, val = [strip(x) for x in arg[2:].split('=')]
key, val = [x.strip() for x in arg[2:].split('=')]
else:
key, val = arg[2:], True
args[key] = val