diff options
author | Jamie Liu <jamieliu@google.com> | 2020-11-30 15:07:25 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-11-30 15:09:28 -0800 |
commit | 786f32c2b1c1fa6a84603758ae93edbaa24b4720 (patch) | |
tree | 061be147be1a353db2906c2f3b4768e402b0d377 | |
parent | e813008664ffb361211936dda8631754411cca4f (diff) |
Do not os.Exit() from test/benchmarks/harness.Harness.Init with no args.
PiperOrigin-RevId: 344896991
-rw-r--r-- | test/benchmarks/harness/harness.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) } |