diff --git a/pkg/cmd/gist/create/create.go b/pkg/cmd/gist/create/create.go index 3eda8b0bd..defd57d95 100644 --- a/pkg/cmd/gist/create/create.go +++ b/pkg/cmd/gist/create/create.go @@ -88,7 +88,7 @@ func NewCmdCreate(f *cmdutil.Factory, runF func(*CreateOptions) error) *cobra.Co }, Aliases: []string{"new"}, RunE: func(c *cobra.Command, args []string) error { - opts.Filenames = args[:] + opts.Filenames = args if runF != nil { return runF(&opts)