def parseArguments(parser, args=None):
	"""
	Takes the system arguments vector and tries to parse the arguments in it given
	the argument parser specified and returns the namespace generated

	@param 	parser 	the ArgumentParser objects to use to parse the arguments
	@param 	args 	arguments to parse (default is sys.argv)
	@return namespace of parsed arguments
	"""
	return parser.parse_args(args)