def get_cmd_args(argv):
    """
    Take the `argv` arguments apart and split up in arguments and options.
    Options start with `-` and can be stacked. Options starting with `--` cannot 
    be stacked.
    """

    args = []
    options = []
    
    i = 1
    while (i < len(argv)):
        if argv[i].strip()[0] == '-':
            # it's an option
            if argv[i].strip()[1] == '-':
                options.append(argv[i].strip()[2:])
            else:
                for a in argv[i].strip()[1:]:
                    options.append(a)
        else:
            # it's an argument
            args.append(argv[i])
    
    return args, options