cheetahapi/main.py
def parse_arguments(args):
    """
    Parses command-line arguments passed to the main program

    :param args: List with command-line parameters passed to the main
    :return: Dictionary with general configuration
             {"-c": "..."}
    :raise GetoptError: if error when parsing arguments
    """
    optlist, args = getopt.getopt(args, "c:")

    parameters = {"-c": Config.DEFAULT_CONFIG_FILE}

    for o, v in optlist:
        parameters[o] = v

    return parameters

    Parses command-line arguments passed to the main program

    :param args: List with command-line parameters passed to the main
    :return: Dictionary with general configuration
             {"-c": "..."}
    :raise GetoptError: if error when parsing arguments
    
Parses command-line arguments passed to the main program
Parses command - line arguments passed to the main program
def parse_arguments(args):
    optlist, args = getopt.getopt(args, "c:")
    parameters = {"-c": Config.DEFAULT_CONFIG_FILE}
    for o, v in optlist:
        parameters[o] = v
    return parameters
def parse_arguments ( args ) : optlist , args = getopt . getopt ( args , "c:" ) parameters = { "-c" : Config . DEFAULT_CONFIG_FILE } for o , v in optlist : parameters [ o ] = v return parameters
Parses command-line arguments passed to the main program
Parses command - line arguments passed to the main program
"""
    Parses command-line arguments passed to the main program

    :param args: List with command-line parameters passed to the main
    :return: Dictionary with general configuration
             {"-c": "..."}
    :raise GetoptError: if error when parsing arguments
    """
Dictionary with general configuration
{"-c": "..."}
Dictionary with general configuration { " - c " : " ... " }
if error when parsing arguments
if error when parsing arguments
GetoptError
args
List with command-line parameters passed to the main
List with command - line parameters passed to the main