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