mirror of
https://github.com/golang/go
synced 2024-11-26 16:16:57 -07:00
Change comment on flagset os.Args check
This commit is contained in:
parent
cf78a8c895
commit
fadcb299c3
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user