Skip to content

Commit 15ec2b7

Browse files
committed
Refactor code
1 parent 2ebc5ce commit 15ec2b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

command/issue.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ var issueListCmd = &cobra.Command{
6767
Short: "List and filter issues in this repository",
6868
Args: func(cmd *cobra.Command, args []string) error {
6969
if len(args) > 0 {
70-
return fmt.Errorf("unknown command %q for %q. Please include whitespace separated issue names within quotes if necessary", args[0], cmd.CommandPath())
70+
return fmt.Errorf("unknown argument %q for %q: Please quote all flag values that contain spaces.", args[0], cmd.CommandPath())
7171
}
7272
return nil
7373
},
7474
Example: `
75-
gh issue list
76-
gh issue list -l "help wanted"
75+
$ gh issue list -l "help wanted"
76+
$ gh issue list -A "some author"
7777
`,
7878
RunE: issueList,
7979
}

0 commit comments

Comments
 (0)