diff --git a/command/issue.go b/command/issue.go index cc93c6e81..0081e5770 100644 --- a/command/issue.go +++ b/command/issue.go @@ -60,8 +60,13 @@ var issueStatusCmd = &cobra.Command{ RunE: issueStatus, } var issueViewCmd = &cobra.Command{ - Use: "view { | | }", - Args: cobra.MinimumNArgs(1), + Use: "view { | | }", + Args: func(cmd *cobra.Command, args []string) error { + if len(args) < 1 { + return errors.New("requires an issue number as an argument") + } + return nil + }, Short: "View an issue in the browser", RunE: issueView, }