parameters: (self, arguments)
return_statement: return key_values
docstring: Transform list of command line arguments into key:(value1, value2) pairs
docstring_summary: Transform list of command line arguments into key:(value1, value2) pairs
docstring_tokens: Transform list of command line arguments into key : ( value1 value2 ) pairs
function: def _arguments_to_key_values(self, arguments):
  		'''Transform list of command line arguments into key:(value1, value2) pairs'''
  		key_values = {}
  		while len(arguments) > 0:
  			arg = arguments.pop(0)
  			if arg.startswith('--'):
  				key = arg[2:]
  			elif arg.startswith('-') and len(arg) == 2:
  				key = arg[1:]
  			else:
  				raise ArgumentError("Failed to parse command line arguments at {arg}".format(arg=arg))
  			vals = self._consume_vals(arguments)
  			key_values[key] = vals
  
  		return key_values
function_tokens: def _arguments_to_key_values ( self , arguments ) : key_values = { } while len ( arguments ) > 0 : arg = arguments . pop ( 0 ) if arg . startswith ( '--' ) : key = arg [ 2 : ] elif arg . startswith ( '-' ) and len ( arg ) == 2 : key = arg [ 1 : ] else : raise ArgumentError ( "Failed to parse command line arguments at {arg}" . format ( arg = arg ) ) vals = self . _consume_vals ( arguments ) key_values [ key ] = vals return key_values