You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I apologize if this is obvious and I'm just missing it, but I'm trying to figure out how to os.Exit(0) when help is called via help, h, --help and -h. All print the help message, but none exit by default and I can't seem to find a simple way to for the exit. I attempted adding checking to my app.Action declaration, but that seems to be executed only if help isn't specified. This seems like something most applications would want to do by default.
I apologize if this is obvious and I'm just missing it, but I'm trying to figure out how to
os.Exit(0)
when help is called viahelp
,h
,--help
and-h
. All print the help message, but none exit by default and I can't seem to find a simple way to for the exit. I attempted adding checking to myapp.Action
declaration, but that seems to be executed only ifhelp
isn't specified. This seems like something most applications would want to do by default.Here's a simplified example -- http://play.golang.org/p/PEdNXSMvJ8.
Cheers and thanks in advance,
J
The text was updated successfully, but these errors were encountered: