We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 084ded5 commit 413cf51Copy full SHA for 413cf51
cmd/notigo/main.go
@@ -92,6 +92,9 @@ func exitWithText(args ...interface{}) {
92
93
func exitWithTextIfError(text string, err error) {
94
if err != nil {
95
+ if flagsErr, ok := err.(*flags.Error); ok && flagsErr.Type == flags.ErrHelp {
96
+ os.Exit(0)
97
+ }
98
exitWithText(text, err.Error())
99
}
100
0 commit comments