Do not os.Exit(1) when error on kong.Parse(...) #238
Answered
by
alecthomas
iguinealinke
asked this question in
Q&A
-
Hi, When parsing command line i would prefer to receive an error instead of having the program exit with os.Exit(1). Is there any other way to handle this errors? On kong.go:46 i can see that maybe it is posible to change this behaviour Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
alecthomas
Nov 25, 2021
Replies: 1 comment 1 reply
-
Yes, you can use the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
iguinealinke
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you can use the
kong.Exit()
option function to override this behaviour.