Skip to content

Commit

Permalink
Don't show operation usage when the body is required but empty.
Browse files Browse the repository at this point in the history
Followup to 64a73f2.
  • Loading branch information
bojanz committed Aug 9, 2023
1 parent 08c4601 commit 31cd3bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/broom/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func profileCmd(args []string) {
exitWithError(fmt.Errorf("unknown operation %s", opID))
}
pathValues := flags.Args()[2:]
if *help || len(op.Parameters.Path) > len(pathValues) || (len(op.Parameters.Body) > 0 && *body == "") {
if *help || len(op.Parameters.Path) > len(pathValues) {
operationUsage(op, profile)
flagUsage(flags)
return
Expand Down

0 comments on commit 31cd3bb

Please sign in to comment.