From 786f32c2b1c1fa6a84603758ae93edbaa24b4720 Mon Sep 17 00:00:00 2001 From: Jamie Liu Date: Mon, 30 Nov 2020 15:07:25 -0800 Subject: Do not os.Exit() from test/benchmarks/harness.Harness.Init with no args. PiperOrigin-RevId: 344896991 --- test/benchmarks/harness/harness.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/benchmarks/harness/harness.go b/test/benchmarks/harness/harness.go index 5c9d0e01e..4c6e724aa 100644 --- a/test/benchmarks/harness/harness.go +++ b/test/benchmarks/harness/harness.go @@ -39,7 +39,7 @@ func (h *Harness) Init() error { flag.PrintDefaults() } flag.Parse() - if flag.NFlag() == 0 || *help { + if *help { flag.Usage() os.Exit(0) } -- cgit v1.2.3