Skip to content

Commit

Permalink
Upgrade usage comments, help text
Browse files Browse the repository at this point in the history
  • Loading branch information
antfie committed Mar 8, 2024
1 parent 1f818f3 commit 76e7f87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func getCredentials(id, key string, profile string) (string, string) {
}

if !cfg.HasSection(profile) {
utils.ErrorAndExit(fmt.Sprintf("Could not find the profile [%s] within the Veracode credentials file. See https://docs.veracode.com/r/c_httpie_tool", profile), nil)
utils.ErrorAndExit(fmt.Sprintf("Could not find the profile [%s] within the Veracode credentials file. Do you need to specify the \"-profile xyz\" flag?. See https://docs.veracode.com/r/c_httpie_tool", profile), nil)

}

Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ func main() {
fmt.Printf("Scan Health v%s\nCopyright © Veracode, Inc. 2024. All Rights Reserved.\nThis is an unofficial Veracode product. It does not come with any support or warranty.\n\n", AppVersion)
vid := flag.String("vid", "", "Veracode API ID - See https://docs.veracode.com/r/c_api_credentials3")
vkey := flag.String("vkey", "", "Veracode API key - See https://docs.veracode.com/r/c_api_credentials3")
profile := flag.String("profile", "default", "Veracode credential profile (default is \"default\") - See https://docs.veracode.com/r/c_httpie_tool#using-multiple-profiles")
profile := flag.String("profile", "default", "Veracode credential profile - See https://docs.veracode.com/r/c_httpie_tool#using-multiple-profiles")
region := flag.String("region", "", "Veracode Region [commercial, us, european], required if a Build ID is specified")
action := flag.String("action", "health", "An action to perform [health (default), compare]")
action := flag.String("action", "health", "An action to perform [health, compare]")
scan := flag.String("sast", "", "Veracode Platform URL or build ID for a SAST scan")
scanA := flag.String("a", "", "Veracode Platform URL or build ID for SAST scan \"A\" - for scan comparison")
scanB := flag.String("b", "", "Veracode Platform URL or build ID for SAST scan \"B\" - for scan comparison")
Expand Down

0 comments on commit 76e7f87

Please sign in to comment.