fix(gh discussion view): wrap arg parse error as flag error
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
f7a79683c0
commit
6bd96abd6a
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ func NewCmdView(f *cmdutil.Factory, runF func(*ViewOptions) error) *cobra.Comman
|
|||
|
||||
number, repo, err := shared.ParseDiscussionArg(args[0])
|
||||
if err != nil {
|
||||
return err
|
||||
return cmdutil.FlagErrorf("%s", err)
|
||||
}
|
||||
|
||||
if repo != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue