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:
Babak K. Shandiz 2026-04-24 22:01:51 +01:00
parent f7a79683c0
commit 6bd96abd6a
No known key found for this signature in database
GPG key ID: 9472CAEFF56C742E

View file

@ -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 {