def read_cmd(argv):
	"""
	splits a list of strings `'--flag=val'` with combined flags and args
	into a dict: `{'flag' : 'val'}` (lstrips the dashes)

	if flag `' flag '` passed without value returns for that flag: `{'flag' : True}`
	"""	
	output = {}
	for x in argv:
		x = x.lstrip('-')
		pair = x.split('=',1)
		if len(pair) < 2:
			pair = pair + [True]

		output[pair[0]] = pair[1]

	return output