It would be cleaner to set flag defaults before calling flagset.Parse, then you don't need to worry about which have been set and which have not.