1
0
mirror of https://github.com/golang/go synced 2024-11-11 18:21:40 -07:00

Change comment on flagset os.Args check

This commit is contained in:
Darren 2024-07-19 10:13:12 +01:00 committed by GitHub
parent cf78a8c895
commit fadcb299c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1199,7 +1199,7 @@ func Parsed() bool {
var CommandLine *FlagSet
func init() {
// Handle the scenario where a process run via execl() can have an empty os.Args
// It's possible for execl to hand us an empty os.Args.
if len(os.Args) == 0 {
CommandLine = NewFlagSet("", ExitOnError)
} else {