From a4de740e4148bf81b251cefba3c7a6a30afabfad Mon Sep 17 00:00:00 2001 From: iseki Date: Wed, 8 Feb 2023 19:37:07 +0800 Subject: [PATCH] fix: add --json flag use client access-type --- cmd/murphy/internal/scan/cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/murphy/internal/scan/cmd.go b/cmd/murphy/internal/scan/cmd.go index 69db8a0c..7d561893 100644 --- a/cmd/murphy/internal/scan/cmd.go +++ b/cmd/murphy/internal/scan/cmd.go @@ -118,7 +118,7 @@ func ideascanRun(cmd *cobra.Command, args []string) { e error accessType = model.AccessTypeIdea ) - if cmd.Use == "scan" { + if cmd.Use == "scan " { accessType = model.AccessTypeCli } // get absolute path and check if a directory