Improve error message for issue URL with no args

This commit is contained in:
Billy Griffin 2020-02-27 11:22:39 -07:00 committed by GitHub
parent adf2177a24
commit b18ea98436
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,7 +69,7 @@ var issueViewCmd = &cobra.Command{
Use: "view {<number> | <url> | <branch>}",
Args: func(cmd *cobra.Command, args []string) error {
if len(args) < 1 {
return FlagError{errors.New("issue required as argument")}
return FlagError{errors.New("issue integer or URL required as argument")}
}
return nil
},