From 2de9c860e6b38ffbfb82e36c4b957d977842d3e0 Mon Sep 17 00:00:00 2001 From: Mehrin Kiani Date: Wed, 22 Nov 2023 10:05:23 -0500 Subject: [PATCH] Remove url support --- modelscan/cli.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/modelscan/cli.py b/modelscan/cli.py index ffd31cf..bd61d51 100644 --- a/modelscan/cli.py +++ b/modelscan/cli.py @@ -35,11 +35,6 @@ def format_usage(self, ctx: click.Context, formatter: click.HelpFormatter) -> No default=None, help="Path to the file or folder to scan", ) -# @click.option( -# "-u", "--url", type=str, default=None, help="URL to the file or folder to scan" -# ) - - @click.option( "-l", "--log", @@ -57,7 +52,6 @@ def format_usage(self, ctx: click.Context, formatter: click.HelpFormatter) -> No def cli( ctx: click.Context, log: str, - # url: Optional[str], path: Optional[str], show_skipped: bool, ) -> int: @@ -74,8 +68,7 @@ def cli( raise FileNotFoundError(f"Path {path} does not exist") else: modelscan.scan_path(pathlibPath) - # elif url is not None: - # modelscan.scan_url(url) + else: raise click.UsageError("Command line must include a path") ConsoleReport.generate(