]> Cypherpunks repositories - gostls13.git/commit
flag: handle nil os.Args when setting CommandLine at package level
authorDarren <darren@develer.co.uk>
Fri, 19 Jul 2024 09:19:18 +0000 (09:19 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 22 Jul 2024 20:58:27 +0000 (20:58 +0000)
commit00cb41e14da0e6ead5b9916e77753b58cbf1be69
tree7e65cbf384e195b250f439b263706adb72249dc9
parent53270be21c5e14a2d15ada2622f20503d97cb89e
flag: handle nil os.Args when setting CommandLine at package level

Fixes #68340

Change-Id: I65037be6961e9ec720537713cb3f23ab9f5f8459
GitHub-Last-Rev: fadcb299c383abdde000daec58b12019a75012c6
GitHub-Pull-Request: golang/go#68341
Reviewed-on: https://go-review.googlesource.com/c/go/+/597075
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Rob Pike <r@golang.org>
src/flag/flag.go