def _get_kwargs(parsed_args, arg_group):
    """
    helper function to extract a list of (keyword) arguments to a dictionary
    """
    return {arg[1][2:]: parsed_args.get(arg[1][2:]) for arg in arg_group}