From adb54bb92b8b09c27baa3579996efb53e96b6a40 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Thu, 24 Nov 2022 23:17:20 +0700 Subject: [PATCH] chore: fix lint --- internal/cli/action.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/cli/action.go b/internal/cli/action.go index 3397cbd..78a2736 100644 --- a/internal/cli/action.go +++ b/internal/cli/action.go @@ -29,7 +29,10 @@ func (a *action) Run(c *cli.Context) error { if !a.flags.write && !a.flags.diff { - a.RunHelp(c) + if err := a.RunHelp(c); err != nil { + return err + } + fmt.Println("Error: -w or -d must required one") return nil }