import re


def process_arguments(raw_arguments: list):
    """ Process the arguments from CLI. The value of sys.argv """
    arguments = {}
    for argument in raw_arguments:
        # catch the arguments with associated values
        matches = re.search(r"^([a-z][a-z0-9-]+?)=['\"]?(.+?)['\"]?$", argument)

        if matches:
            arg = matches.group(1).lower()
            value = matches.group(2)

            arguments.update({
                arg: value
            })
            continue

        # catch the simple arguments
        matches = re.search(r"^(-[a-z][a-z0-9-]*?)$", argument)
        if matches:
            arg = matches.group(1)
            arguments.update({
                arg: True
            })
    return arguments