Improve error message for issue URL with no args
This commit is contained in:
parent
adf2177a24
commit
b18ea98436
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ var issueViewCmd = &cobra.Command{
|
|||
Use: "view {<number> | <url> | <branch>}",
|
||||
Args: func(cmd *cobra.Command, args []string) error {
|
||||
if len(args) < 1 {
|
||||
return FlagError{errors.New("issue required as argument")}
|
||||
return FlagError{errors.New("issue integer or URL required as argument")}
|
||||
}
|
||||
return nil
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue