Skip to content

Commit

Permalink
fix: fill command flags usage
Browse files Browse the repository at this point in the history
  • Loading branch information
iseki0 committed Oct 23, 2024
1 parent b654f27 commit c2208bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/murphy/internal/scan/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ func DfCmd() *cobra.Command {
c.Flags().StringVar(&mavenSettingsPath, "maven-settings", "", "specify the path of maven settings")
c.Flags().BoolVar(&onlyTaskId, "only-task-id", false, "print task id after task created, the scan result will not be printed")
c.Flags().StringArrayVar(&projectTagNames, "project-tag", make([]string, 0), "specify the tag of the project")
c.Flags().StringVar(&sbomOutputConfig, "sbom-output", "", "")
c.Flags().Var(&sbomOutputType, "sbom-format", "")
c.Flags().StringVar(&sbomOutputConfig, "sbom-output", "-", "Specify the SBOM output file path, use \"-\" to output to stdout")
c.Flags().Var(&sbomOutputType, "sbom-format", "(Required) Specify the SBOM format, currently supports: murphysec1.1+json")
return &c
}

Expand All @@ -82,8 +82,8 @@ func EnvCmd() *cobra.Command {
c.Flags().StringVar(&projectNameCli, "project-name", "", "specify project name")
c.Flags().BoolVar(&onlyTaskId, "only-task-id", false, "print task id after task created, the scan result will not be printed")
c.Flags().StringArrayVar(&projectTagNames, "project-tag", make([]string, 0), "specify the tag of the project")
c.Flags().StringVar(&sbomOutputConfig, "sbom-output", "-", "")
c.Flags().Var(&sbomOutputType, "sbom-format", "")
c.Flags().StringVar(&sbomOutputConfig, "sbom-output", "-", "Specify the SBOM output file path, use \"-\" to output to stdout")
c.Flags().Var(&sbomOutputType, "sbom-format", "(Required) Specify the SBOM format, currently supports: murphysec1.1+json")
return &c
}

Expand Down

0 comments on commit c2208bb

Please sign in to comment.