X Tutup
Skip to content

Commit cbf8a0d

Browse files
committed
Accept only one argument when deleting a gist
1 parent d6798b1 commit cbf8a0d

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: cmdutil.MinimumArgs(1, "cannot delete: gist argument required"),
32+
Args: cobra.ExactArgs(1),
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