diff --git a/command/pr.go b/command/pr.go index c70ab4da2..ae65b80a1 100644 --- a/command/pr.go +++ b/command/pr.go @@ -107,13 +107,13 @@ var prReopenCmd = &cobra.Command{ } var prMergeCmd = &cobra.Command{ Use: "merge [ | | ]", + Args: cobra.MaximumNArgs(1), Short: "Merge a pull request", Long: `Merge a pull request by providing the pull request number or url or the branch. By default, the source branch gets deleted after the merge is complete. If the source branch needs be retained, '--delete-branch=false' should be specified.`, - Args: cobra.MaximumNArgs(1), RunE: prMerge, } var prReadyCmd = &cobra.Command{