Skip to content

Commit a3c18ff

Browse files
committed
feat: SCA-57 add flag maven-arg & maven-prepend-arg
1 parent 28ce11d commit a3c18ff

File tree

1 file changed

+2
-0
lines changed
  • cmd/murphy/internal/scan

1 file changed

+2
-0
lines changed

cmd/murphy/internal/scan/cmd.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ func DfCmd() *cobra.Command {
101101
c.Flags().StringVar(&extraData, "extra-data", "", "specify the extra data")
102102
c.Flags().BoolVar(&scanCodeHash, "scan-snippets", false, "Enable scanning of code snippets to detect SBOM and vulnerabilities. Disabled by default")
103103
c.Flags().StringArrayVar(&gradleProjectFilter.ProjectNames, "gradle-project-name", make([]string, 0), "specify the name of the Gradle project")
104+
c.Flags().StringArrayVar(&toolver.Default.Maven.AdditionalPrependArgs, "maven-prepend-arg", []string{}, "Prepend an argument to the Maven command. Can be specified multiple times.")
105+
c.Flags().StringArrayVar(&toolver.Default.Maven.AdditionalArgs, "maven-arg", []string{}, "Append an argument to the Maven command. Can be specified multiple times.")
104106
return &c
105107
}
106108

0 commit comments

Comments
 (0)