alphazero/Go-Redis — pull request #21 by syscomet (2012-08-29 04:35:57+00:00)
Title: Leave flag.Parse() to the main().

Calling flag.Parse() in our init() inhibits others from using the flag module.

All flag definitions must happen before flag.Parse() is called, and flag.Parse() can only effectively be called once. So a client pulling in Go-Redis also using the flag module would get an error of the form:
flag provided but not defined: -the-client-app-flag

We can't effectively coerce that flag.Parse() must happen, unless we use sync.Once to call it in our own API guarded by a call to flag.Parsed().