def _run(runner, parsed_args):
    """Run function/method and return the result."""
    if type(parsed_args) is tuple:      # list and keyword arguments
        res = runner(*parsed_args[0], **parsed_args[1])
        if "q" not in parsed_args[1]:
            print(res)
    else:                               # only keyword arguments
        res = runner(**parsed_args)
        if "q" not in parsed_args:
            print(res)
    return res