From 6f44a918ba359f1b61bc13d69ef5f7ea050f1a16 Mon Sep 17 00:00:00 2001 From: Shang Jian Ding Date: Wed, 1 Apr 2020 19:31:22 -0500 Subject: [PATCH] Update comment on const ExitOnError --- src/flag/flag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flag/flag.go b/src/flag/flag.go index 5e7c07c4ccd29..0ec261b425a01 100644 --- a/src/flag/flag.go +++ b/src/flag/flag.go @@ -308,7 +308,7 @@ type ErrorHandling int // These constants cause FlagSet.Parse to behave as described if the parse fails. const ( ContinueOnError ErrorHandling = iota // Return a descriptive error. - ExitOnError // Call os.Exit(2). + ExitOnError // Call os.Exit(2) or for -h/-help Exit(0). PanicOnError // Call panic with a descriptive error. )