func (c *SuperCommand) SetFlags(f *gnuflag.FlagSet) {
	c.SetCommonFlags(f)
	// Only flags set by SetCommonFlags are passed on to subcommands.
	// Any flags added below only take effect when no subcommand is
	// specified (e.g. command --version).
	if c.version != "" {
		f.BoolVar(&c.showVersion, "version", false, "show the command's version and exit")
	}
	if c.userAliasesFilename != "" {
		f.BoolVar(&c.noAlias, "no-alias", false, "do not process command aliases when running this command")
	}
	c.flags = f
}
// SetFlags adds the options that apply to all commands, particularly those
// due to logging.
SetFlags adds the options that apply to all commands, particularly those
due to logging.
// SetFlags adds the options that apply to all commands particularly those // due to logging .
func (c *SuperCommand) SetFlags(f *gnuflag.FlagSet) {
	c.SetCommonFlags(f)
	if c.version != "" {
		f.BoolVar(&c.showVersion, "version", false, "show the command's version and exit")
	}
	if c.userAliasesFilename != "" {
		f.BoolVar(&c.noAlias, "no-alias", false, "do not process command aliases when running this command")
	}
	c.flags = f
}
func ( c * SuperCommand ) SetFlags ( f * gnuflag . FlagSet ) { c . SetCommonFlags ( f ) if c . version != " " { f . BoolVar ( & c . showVersion , " " , false , " " ) } if c . userAliasesFilename != " " { f . BoolVar ( & c . noAlias , " " , false , " " ) } c . flags = f }
SetFlags adds the options that apply to all commands, particularly those
due to logging.
SetFlags adds the options that apply to all commands particularly those due to logging .
// Only flags set by SetCommonFlags are passed on to subcommands. // Any flags added below only take effect when no subcommand is // specified (e.g. command --version).