diff --git a/pkg/cmd/gist/view/view.go b/pkg/cmd/gist/view/view.go index 4f41a84a9..c221a0267 100644 --- a/pkg/cmd/gist/view/view.go +++ b/pkg/cmd/gist/view/view.go @@ -39,10 +39,8 @@ func NewCmdView(f *cmdutil.Factory, runF func(*ViewOptions) error) *cobra.Comman cmd := &cobra.Command{ Use: "view [ | ]", Short: "View a gist", - Long: `View specific gist if argument provided. - -With no argument, most recent 10 gists will prompt`, - Args: cobra.MaximumNArgs(1), + Long: `View the given gist or select from recent gists.`, + Args: cobra.MaximumNArgs(1), RunE: func(cmd *cobra.Command, args []string) error { if len(args) == 1 { opts.Selector = args[0] @@ -82,7 +80,7 @@ func viewRun(opts *ViewOptions) error { } if gistID == "" { - + fmt.Fprintln(opts.IO.Out, "No gists found.") return nil } }