X Tutup
Skip to content

Commit 61eb7ee

Browse files
committed
Add msg in gist delete
1 parent 56ead91 commit 61eb7ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/gist/delete/delete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func NewCmdDelete(f *cmdutil.Factory, runF func(*DeleteOptions) error) *cobra.Co
2929
cmd := &cobra.Command{
3030
Use: "delete {<id> | <url>}",
3131
Short: "Delete a gist",
32-
Args: cobra.ExactArgs(1),
32+
Args: cmdutil.ExactArgs(1, "cannot delete: gist argument required"),
3333
RunE: func(c *cobra.Command, args []string) error {
3434
opts.Selector = args[0]
3535
if runF != nil {

0 commit comments

Comments
 (0)
X Tutup