We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 217998a commit 2ebc5ceCopy full SHA for 2ebc5ce
command/issue.go
@@ -65,7 +65,17 @@ var issueCreateCmd = &cobra.Command{
65
var issueListCmd = &cobra.Command{
66
Use: "list",
67
Short: "List and filter issues in this repository",
68
- RunE: issueList,
+ Args: func(cmd *cobra.Command, args []string) error {
69
+ 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())
71
+ }
72
+ return nil
73
+ },
74
+ Example: `
75
+ gh issue list
76
+ gh issue list -l "help wanted"
77
+ `,
78
+ RunE: issueList,
79
}
80
var issueStatusCmd = &cobra.Command{
81
Use: "status",
0 commit comments