package main import "flag" func main() { var mode string flag.StringVar(&mode, "mode", "client", "Specify \"client\" or \"server\" mode") flag.Parse() }