Skip to content

Commit 24c41b5

Browse files
committed
gist view: fix missing files shorthand
converted to `BoolVar`
1 parent 0052199 commit 24c41b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/gist/view/view.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func NewCmdView(f *cmdutil.Factory, runF func(*ViewOptions) error) *cobra.Comman
6868

6969
cmd.Flags().BoolVarP(&opts.Raw, "raw", "r", false, "Print raw instead of rendered gist contents")
7070
cmd.Flags().BoolVarP(&opts.Web, "web", "w", false, "Open gist in the browser")
71-
cmd.Flags().BoolVarP(&opts.ListFiles, "files", "", false, "List file names from the gist")
71+
cmd.Flags().BoolVar(&opts.ListFiles, "files", false, "List file names from the gist")
7272
cmd.Flags().StringVarP(&opts.Filename, "filename", "f", "", "Display a single file from the gist")
7373

7474
return cmd

0 commit comments

Comments
 (0)