// addFlags adds flags for specific command.
addFlags adds flags for specific command.
// addFlags adds flags for specific command .
func (m *MasterCommand) addFlags() {
	flagSet := m.cmd.Flags()
	flagSet.BoolVar(&m.flags.debug, "debug", false, "Output debug log to stderr.")
	flagSet.StringVarP(&m.flags.configFile, "config", "c", "/etc/nap/config.toml", "Specify the path of configuration file.")
}
func ( m * MasterCommand ) addFlags ( ) { flagSet := m . cmd . Flags ( ) flagSet . BoolVar ( & m . flags . debug , " " , false , " " ) flagSet . StringVarP ( & m . flags . configFile , " " , " " , " " , " " ) }
addFlags adds flags for specific command.
addFlags adds flags for specific command .