Skip to content

Commit 5d64c14

Browse files
updated the help text
1 parent f3c875b commit 5d64c14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/commands/scan.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ func scanCreateSubCommand(
679679
createScanCmd.PersistentFlags().Bool(
680680
commonParams.BranchPrimaryFlag,
681681
false,
682-
"Sets the given branch as primary for the project")
682+
"This flag sets the branch specified in --branch as the PRIMARY branch for the project")
683683

684684
createScanCmd.PersistentFlags().Bool(
685685
commonParams.SastRecommendedExclusionsFlags,
@@ -2962,7 +2962,7 @@ func validateCreateScanFlags(cmd *cobra.Command) error {
29622962
if isBranchChanged {
29632963
for _, a := range os.Args[1:] {
29642964
if strings.HasPrefix(a, BranchPrimaryPrefix) {
2965-
return fmt.Errorf("invalid value for --branch-primary flag. This flag must be sent with no value")
2965+
return fmt.Errorf("invalid value for --branch-primary flag. This flag is sent without any values")
29662966
}
29672967
}
29682968
}

0 commit comments

Comments
 (0)