// Set up a basic command line flags parsing package main import ( "flag" ) func parseFlags() { flag.StringVar(&configfile, "f", "", "Configuration file") flag.StringVar(&username, "u", "", "Sets the user to which privilege dropping is done") flag.StringVar(&groupname, "g", "", "Sets the group to which privilege dropping is done") flag.Parse() }