From 3782ed6c8d43c332bdfa19d7ae30714478a6d245 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Wed, 6 Nov 2019 10:07:24 -0800 Subject: [PATCH] Tweaks --- command/issue.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/command/issue.go b/command/issue.go index 17dc9507e..973163f36 100644 --- a/command/issue.go +++ b/command/issue.go @@ -27,7 +27,7 @@ func init() { RunE: issueList, }, &cobra.Command{ - Use: "view issue-number", + Use: "view [issue-number]", Args: cobra.MinimumNArgs(1), Short: "Open a issue in the browser", RunE: issueView, @@ -38,8 +38,6 @@ func init() { } func issueList(cmd *cobra.Command, args []string) error { - cmd.SilenceUsage = true - ctx := contextForCommand(cmd) apiClient, err := apiClientForContext(ctx) if err != nil { @@ -90,8 +88,6 @@ func issueList(cmd *cobra.Command, args []string) error { } func issueView(cmd *cobra.Command, args []string) error { - cmd.SilenceUsage = true - ctx := contextForCommand(cmd) baseRepo, err := ctx.BaseRepo()