in scripts/xcresult_logs.py [0:0]
def parse_xcodebuild_flags(args):
"""Parses the xcodebuild command-line.
Extracts flags like -workspace and -scheme that dictate the location of the
logs.
"""
result = {}
key = None
for arg in args:
if arg.startswith('-'):
if arg in INTERESTING_FLAGS:
key = arg
elif key is not None:
result[key] = arg
key = None
return result