From 15ec2b748e2acfddf8a0ef8c5ff3c6da2b74b352 Mon Sep 17 00:00:00 2001 From: ShubhankarKG Date: Fri, 12 Jun 2020 12:00:01 +0530 Subject: [PATCH] Refactor code --- command/issue.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/command/issue.go b/command/issue.go index 371440066..cf5087bff 100644 --- a/command/issue.go +++ b/command/issue.go @@ -67,13 +67,13 @@ var issueListCmd = &cobra.Command{ Short: "List and filter issues in this repository", Args: func(cmd *cobra.Command, args []string) error { if len(args) > 0 { - return fmt.Errorf("unknown command %q for %q. Please include whitespace separated issue names within quotes if necessary", args[0], cmd.CommandPath()) + return fmt.Errorf("unknown argument %q for %q: Please quote all flag values that contain spaces.", args[0], cmd.CommandPath()) } return nil }, Example: ` - gh issue list - gh issue list -l "help wanted" + $ gh issue list -l "help wanted" + $ gh issue list -A "some author" `, RunE: issueList, }