def option(name, short, type, default, descr=''):
    """Declare a new option for the given cli-command.

    :param name: option name
    :param short: option short name
    :param type: option type
    :param default: option default value
    :param descr: option description
    :return: a new decorator that will declare option for marked command
    """

    def decorator(element):
        """Decorator declaring a new option."""
        element.declare_option(name=name, short=short, type=type, default=default, descr=descr)
        return element

    return decorator