diff --git a/command/pr_review.go b/command/pr_review.go index 9754c178b..1ecc7f8bc 100644 --- a/command/pr_review.go +++ b/command/pr_review.go @@ -53,7 +53,7 @@ func processReviewOpt(cmd *cobra.Command) (*api.PullRequestReviewInput, error) { } if found != 1 { - return nil, errors.New("need exactly one of approve, request-changes, or comment") + return nil, errors.New("need exactly one of --approve, --request-changes, or --comment") } val, err := cmd.Flags().GetString(flag) diff --git a/command/pr_review_test.go b/command/pr_review_test.go index eb96f8dd2..f37a609d8 100644 --- a/command/pr_review_test.go +++ b/command/pr_review_test.go @@ -17,7 +17,7 @@ func TestPRReview_validation(t *testing.T) { } { http.StubRepoResponse("OWNER", "REPO") _, err := RunCommand(cmd) - eq(t, err.Error(), "did not understand desired review action: need exactly one of approve, request-changes, or comment") + eq(t, err.Error(), "did not understand desired review action: need exactly one of --approve, --request-changes, or --comment") } }