Better error message

This commit is contained in:
Sam Coe 2021-08-19 14:46:26 -07:00
parent 232ad2a67c
commit 50a15cae86
No known key found for this signature in database
GPG key ID: 8E322C20F811D086

View file

@ -144,7 +144,7 @@ func NewCmdExtension(f *cmdutil.Factory) *cobra.Command {
&cobra.Command{
Use: "create <name>",
Short: "Create a new extension",
Args: cobra.ExactArgs(1),
Args: cmdutil.ExactArgs(1, "must specify a name for the extension"),
RunE: func(cmd *cobra.Command, args []string) error {
extName := args[0]
if !strings.HasPrefix(extName, "gh-") {