code: func (m *Main) ParseFlags(args []string) error {
  	// Use service name, if specified.
  	if s := os.Getenv("FLYNN_REDIS"); s != "" {
  		m.ServiceName = s
  		m.Logger = log15.New("app", m.ServiceName)
  	}
  
  	// Extract password from environment variable.
  	m.Process.Password = os.Getenv("REDIS_PASSWORD")
  
  	return nil
  }
docs: // ParseFlags parses the command line flags and environment variables.