func NewName(name string, prefix clix.FlagPrefix) *Flags {
	var (
		logDevelopment        = clix.NewFlagName(prefix, name, "log-development")
		logLevel              = clix.NewFlagName(prefix, name, "log-level")
		logWithCaller         = clix.NewFlagName(prefix, name, "log-with-caller")
		logStackTrace         = clix.NewFlagName(prefix, name, "log-stack-trace")
		logStackTraceLv       = clix.NewFlagName(prefix, name, "log-stack-trace-level")
		logDateFormat         = clix.NewFlagName(prefix, name, "log-date-format")
		logFields             = clix.NewFlagName(prefix, name, "log-field")
		logPaths              = clix.NewFlagName(prefix, name, "log-path")
		logErrPaths           = clix.NewFlagName(prefix, name, "log-err-path")
		logSamplingInitial    = clix.NewFlagName(prefix, name, "log-sampling-initial")
		logSamplingThereafter = clix.NewFlagNameAlias(prefix, name, "log-sampling-thereafter", "lsth")
	)

	return &Flags{
		Name: name,

		FlagDevelopment: &cli.BoolFlag{
			Name:        logDevelopment.Name,
			Aliases:     logDevelopment.Aliases,
			Usage:       "enable development mode",
			EnvVars:     logDevelopment.EnvVars,
			FilePath:    logDevelopment.FilePath,
			Destination: new(bool),
		},

		FlagLevel: &cli.GenericFlag{
			Name:        logLevel.Name,
			Aliases:     logLevel.Aliases,
			Usage:       "`level` [debug|info|warn|error|dpanic|panic|fatal]",
			EnvVars:     logLevel.EnvVars,
			FilePath:    logLevel.FilePath,
			Value:       new(zapcore.Level),
			DefaultText: "auto",
		},

		FlagWithCaller: &cli.BoolFlag{
			Name:        logWithCaller.Name,
			Aliases:     logWithCaller.Aliases,
			Usage:       "whether including caller",
			EnvVars:     logWithCaller.EnvVars,
			FilePath:    logWithCaller.FilePath,
			DefaultText: "auto",
			Destination: new(bool),
		},

		FlagStackTrace: &cli.BoolFlag{
			Name:        logStackTrace.Name,
			Aliases:     logStackTrace.Aliases,
			Usage:       "whether including stack trace",
			EnvVars:     logStackTrace.EnvVars,
			FilePath:    logStackTrace.FilePath,
			DefaultText: "auto",
			Destination: new(bool),
		},

		FlagStackTraceLv: &cli.GenericFlag{
			Name:        logStackTraceLv.Name,
			Aliases:     logStackTraceLv.Aliases,
			Usage:       "`level` [debug|info|warn|error|dpanic|panic|fatal]",
			EnvVars:     logStackTraceLv.EnvVars,
			FilePath:    logStackTraceLv.FilePath,
			Value:       new(zapcore.Level),
			DefaultText: "auto",
		},

		FlagDateFormat: &cli.StringFlag{
			Name:        logDateFormat.Name,
			Aliases:     logDateFormat.Aliases,
			Usage:       "see https://pkg.go.dev/time#Time.Format",
			EnvVars:     logDateFormat.EnvVars,
			FilePath:    logDateFormat.FilePath,
			DefaultText: "auto",
			Destination: new(string),
		},

		FlagFields: &cli.StringSliceFlag{
			Name:        logFields.Name,
			Aliases:     logFields.Aliases,
			Usage:       "`key=value` added to the logger",
			EnvVars:     logFields.EnvVars,
			FilePath:    logFields.FilePath,
			Destination: new(cli.StringSlice),
		},

		FlagPaths: &cli.StringSliceFlag{
			Name:        logPaths.Name,
			Aliases:     logPaths.Aliases,
			Usage:       "output path (default: auto)",
			EnvVars:     logPaths.EnvVars,
			FilePath:    logPaths.FilePath,
			Destination: new(cli.StringSlice),
			//DefaultText: "auto", // FIXME: cli@v2.3.0 does not print DefaultText.
		},

		FlagErrPaths: &cli.StringSliceFlag{
			Name:        logErrPaths.Name,
			Aliases:     logErrPaths.Aliases,
			Usage:       "error output path (default: auto)",
			EnvVars:     logErrPaths.EnvVars,
			FilePath:    logErrPaths.FilePath,
			Destination: new(cli.StringSlice),
			//DefaultText: "auto", // FIXME: cli@v2.3.0 does not print DefaultText.
		},

		FlagSamplingInitial: &cli.IntFlag{
			Name:        logSamplingInitial.Name,
			Aliases:     logSamplingInitial.Aliases,
			Usage:       "sampling initial count `N`",
			EnvVars:     logSamplingInitial.EnvVars,
			FilePath:    logSamplingInitial.FilePath,
			DefaultText: "auto",
			Destination: new(int),
		},

		FlagSamplingThereafter: &cli.IntFlag{
			Name:        logSamplingThereafter.Name,
			Aliases:     logSamplingThereafter.Aliases,
			Usage:       "sampling thereafter count `N`",
			EnvVars:     logSamplingThereafter.EnvVars,
			FilePath:    logSamplingThereafter.FilePath,
			DefaultText: "auto",
			Destination: new(int),
		},

		FlagSet: clix.NewFlagSet(),
	}
}
// NewName returns a *Flags.
NewName returns a *Flags.
// NewName returns a * Flags .
func NewName(name string, prefix clix.FlagPrefix) *Flags {
	var (
		logDevelopment        = clix.NewFlagName(prefix, name, "log-development")
		logLevel              = clix.NewFlagName(prefix, name, "log-level")
		logWithCaller         = clix.NewFlagName(prefix, name, "log-with-caller")
		logStackTrace         = clix.NewFlagName(prefix, name, "log-stack-trace")
		logStackTraceLv       = clix.NewFlagName(prefix, name, "log-stack-trace-level")
		logDateFormat         = clix.NewFlagName(prefix, name, "log-date-format")
		logFields             = clix.NewFlagName(prefix, name, "log-field")
		logPaths              = clix.NewFlagName(prefix, name, "log-path")
		logErrPaths           = clix.NewFlagName(prefix, name, "log-err-path")
		logSamplingInitial    = clix.NewFlagName(prefix, name, "log-sampling-initial")
		logSamplingThereafter = clix.NewFlagNameAlias(prefix, name, "log-sampling-thereafter", "lsth")
	)
	return &Flags{
		Name: name,
		FlagDevelopment: &cli.BoolFlag{
			Name:        logDevelopment.Name,
			Aliases:     logDevelopment.Aliases,
			Usage:       "enable development mode",
			EnvVars:     logDevelopment.EnvVars,
			FilePath:    logDevelopment.FilePath,
			Destination: new(bool),
		},
		FlagLevel: &cli.GenericFlag{
			Name:        logLevel.Name,
			Aliases:     logLevel.Aliases,
			Usage:       "`level` [debug|info|warn|error|dpanic|panic|fatal]",
			EnvVars:     logLevel.EnvVars,
			FilePath:    logLevel.FilePath,
			Value:       new(zapcore.Level),
			DefaultText: "auto",
		},
		FlagWithCaller: &cli.BoolFlag{
			Name:        logWithCaller.Name,
			Aliases:     logWithCaller.Aliases,
			Usage:       "whether including caller",
			EnvVars:     logWithCaller.EnvVars,
			FilePath:    logWithCaller.FilePath,
			DefaultText: "auto",
			Destination: new(bool),
		},
		FlagStackTrace: &cli.BoolFlag{
			Name:        logStackTrace.Name,
			Aliases:     logStackTrace.Aliases,
			Usage:       "whether including stack trace",
			EnvVars:     logStackTrace.EnvVars,
			FilePath:    logStackTrace.FilePath,
			DefaultText: "auto",
			Destination: new(bool),
		},
		FlagStackTraceLv: &cli.GenericFlag{
			Name:        logStackTraceLv.Name,
			Aliases:     logStackTraceLv.Aliases,
			Usage:       "`level` [debug|info|warn|error|dpanic|panic|fatal]",
			EnvVars:     logStackTraceLv.EnvVars,
			FilePath:    logStackTraceLv.FilePath,
			Value:       new(zapcore.Level),
			DefaultText: "auto",
		},
		FlagDateFormat: &cli.StringFlag{
			Name:        logDateFormat.Name,
			Aliases:     logDateFormat.Aliases,
			Usage:       "see https://pkg.go.dev/time#Time.Format",
			EnvVars:     logDateFormat.EnvVars,
			FilePath:    logDateFormat.FilePath,
			DefaultText: "auto",
			Destination: new(string),
		},
		FlagFields: &cli.StringSliceFlag{
			Name:        logFields.Name,
			Aliases:     logFields.Aliases,
			Usage:       "`key=value` added to the logger",
			EnvVars:     logFields.EnvVars,
			FilePath:    logFields.FilePath,
			Destination: new(cli.StringSlice),
		},
		FlagPaths: &cli.StringSliceFlag{
			Name:        logPaths.Name,
			Aliases:     logPaths.Aliases,
			Usage:       "output path (default: auto)",
			EnvVars:     logPaths.EnvVars,
			FilePath:    logPaths.FilePath,
			Destination: new(cli.StringSlice),
		},
		FlagErrPaths: &cli.StringSliceFlag{
			Name:        logErrPaths.Name,
			Aliases:     logErrPaths.Aliases,
			Usage:       "error output path (default: auto)",
			EnvVars:     logErrPaths.EnvVars,
			FilePath:    logErrPaths.FilePath,
			Destination: new(cli.StringSlice),
		},
		FlagSamplingInitial: &cli.IntFlag{
			Name:        logSamplingInitial.Name,
			Aliases:     logSamplingInitial.Aliases,
			Usage:       "sampling initial count `N`",
			EnvVars:     logSamplingInitial.EnvVars,
			FilePath:    logSamplingInitial.FilePath,
			DefaultText: "auto",
			Destination: new(int),
		},
		FlagSamplingThereafter: &cli.IntFlag{
			Name:        logSamplingThereafter.Name,
			Aliases:     logSamplingThereafter.Aliases,
			Usage:       "sampling thereafter count `N`",
			EnvVars:     logSamplingThereafter.EnvVars,
			FilePath:    logSamplingThereafter.FilePath,
			DefaultText: "auto",
			Destination: new(int),
		},
		FlagSet: clix.NewFlagSet(),
	}
}
func NewName ( name string , prefix clix . FlagPrefix ) * Flags { var ( logDevelopment = clix . NewFlagName ( prefix , name , " " ) logLevel = clix . NewFlagName ( prefix , name , " " ) logWithCaller = clix . NewFlagName ( prefix , name , " " ) logStackTrace = clix . NewFlagName ( prefix , name , " " ) logStackTraceLv = clix . NewFlagName ( prefix , name , " " ) logDateFormat = clix . NewFlagName ( prefix , name , " " ) logFields = clix . NewFlagName ( prefix , name , " " ) logPaths = clix . NewFlagName ( prefix , name , " " ) logErrPaths = clix . NewFlagName ( prefix , name , " " ) logSamplingInitial = clix . NewFlagName ( prefix , name , " " ) logSamplingThereafter = clix . NewFlagNameAlias ( prefix , name , " " , " " ) ) return & Flags { Name : name , FlagDevelopment : & cli . BoolFlag { Name : logDevelopment . Name , Aliases : logDevelopment . Aliases , Usage : " " , EnvVars : logDevelopment . EnvVars , FilePath : logDevelopment . FilePath , Destination : new ( bool ) , } , FlagLevel : & cli . GenericFlag { Name : logLevel . Name , Aliases : logLevel . Aliases , Usage : " " , EnvVars : logLevel . EnvVars , FilePath : logLevel . FilePath , Value : new ( zapcore . Level ) , DefaultText : " " , } , FlagWithCaller : & cli . BoolFlag { Name : logWithCaller . Name , Aliases : logWithCaller . Aliases , Usage : " " , EnvVars : logWithCaller . EnvVars , FilePath : logWithCaller . FilePath , DefaultText : " " , Destination : new ( bool ) , } , FlagStackTrace : & cli . BoolFlag { Name : logStackTrace . Name , Aliases : logStackTrace . Aliases , Usage : " " , EnvVars : logStackTrace . EnvVars , FilePath : logStackTrace . FilePath , DefaultText : " " , Destination : new ( bool ) , } , FlagStackTraceLv : & cli . GenericFlag { Name : logStackTraceLv . Name , Aliases : logStackTraceLv . Aliases , Usage : " " , EnvVars : logStackTraceLv . EnvVars , FilePath : logStackTraceLv . FilePath , Value : new ( zapcore . Level ) , DefaultText : " " , } , FlagDateFormat : & cli . StringFlag { Name : logDateFormat . Name , Aliases : logDateFormat . Aliases , Usage : " " , EnvVars : logDateFormat . EnvVars , FilePath : logDateFormat . FilePath , DefaultText : " " , Destination : new ( string ) , } , FlagFields : & cli . StringSliceFlag { Name : logFields . Name , Aliases : logFields . Aliases , Usage : " " , EnvVars : logFields . EnvVars , FilePath : logFields . FilePath , Destination : new ( cli . StringSlice ) , } , FlagPaths : & cli . StringSliceFlag { Name : logPaths . Name , Aliases : logPaths . Aliases , Usage : " " , EnvVars : logPaths . EnvVars , FilePath : logPaths . FilePath , Destination : new ( cli . StringSlice ) , } , FlagErrPaths : & cli . StringSliceFlag { Name : logErrPaths . Name , Aliases : logErrPaths . Aliases , Usage : " " , EnvVars : logErrPaths . EnvVars , FilePath : logErrPaths . FilePath , Destination : new ( cli . StringSlice ) , } , FlagSamplingInitial : & cli . IntFlag { Name : logSamplingInitial . Name , Aliases : logSamplingInitial . Aliases , Usage : " " , EnvVars : logSamplingInitial . EnvVars , FilePath : logSamplingInitial . FilePath , DefaultText : " " , Destination : new ( int ) , } , FlagSamplingThereafter : & cli . IntFlag { Name : logSamplingThereafter . Name , Aliases : logSamplingThereafter . Aliases , Usage : " " , EnvVars : logSamplingThereafter . EnvVars , FilePath : logSamplingThereafter . FilePath , DefaultText : " " , Destination : new ( int ) , } , FlagSet : clix . NewFlagSet ( ) , } }
NewName returns a *Flags.
NewName returns a * Flags .
//DefaultText: "auto", // FIXME: cli@v2.3.0 does not print DefaultText. //DefaultText: "auto", // FIXME: cli@v2.3.0 does not print DefaultText.