def parse_cli_options(parser):
    """
    Parses options and removes empty spaces in option values.
    :param parser:
    :return: stripped options
    """
    (opts, args) = parser.parse_args()
    for key in opts.__dict__.keys():
        opts.__dict__[key] = opts.__dict__[key].strip()
    return opts