diff --git a/swh/scanner/cli.py b/swh/scanner/cli.py --- a/swh/scanner/cli.py +++ b/swh/scanner/cli.py @@ -27,16 +27,6 @@ } } - -def parse_url(url): - """CLI-specific helper to 'autocomplete' the provided url.""" - if not url.startswith("https://"): - url = "https://" + url - if not url.endswith("/"): - url += "/" - return url - - CONFIG_FILE_HELP = f"""Configuration file: The CLI option or the environment variable will fail if invalid. @@ -117,7 +107,7 @@ config = ctx.obj["config"] if api_url: - config["web-api"]["url"] = parse_url(api_url) + config["web-api"]["url"] = api_url scan(config, root_path, patterns, out_fmt, interactive)