put flag.Parse to main packages