def METHOD_NAME(*names, **kwargs):
    """
    A decorator that adds a `--rest-api-url, -u` option to the decorated
    command.
    Name can be configured through ``*names``. Keyword arguments are passed to
    the underlying ``click.option`` decorator.
    """
    if not names:
        names = ["--rest-api-url", "-u"]
    def decorator(f):
        return click.option(
            *names,
            type=click.STRING,
            cls=extended_option(hide_if_default=True),
            help="The base REST API URL. It looks like http://server (without path e.g. /data-jobs)",
            default=VDKConfig().control_service_rest_api_url
            or load_default_rest_api_url(),
            **kwargs,
        )(f)
    return decorator