package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
BoolFlag creates a bool flag and registers it with the FlagSet.
BoolFlagDepth is like BoolFlag but the caller can control the call level at which the env var usage assertion is done.
DurationFlag creates a duration flag and registers it with the FlagSet.
DurationFlagDepth is like DurationFlag but the caller can control the call level at which the env var usage assertion is done.
FlagSetForCmd is a replacement for cmd.Flag() that properly merges persistent and local flags, until the upstream bug https://github.com/spf13/cobra/issues/961 has been fixed.
IntFlag creates an int flag and registers it with the FlagSet.
IntFlagDepth is like IntFlag but the caller can control the call level at which the env var usage assertion is done.
ProcessEnvVarDefaults injects the current value of flag-related environment variables into the initial value of the settings linked to the flags, during initialization and before the command line is actually parsed.
StringFlag creates a string flag and registers it with the FlagSet.
StringFlagDepth is like StringFlag but the caller can control the call level at which the env var usage assertion is done.
StringSliceFlag creates a string slice flag and registers it with the FlagSet.
StringSliceFlagDepth is like StringSliceFlag but the caller can control the call level at which the env var usage assertion is done.
VarFlag creates a custom-variable flag and registers it with the FlagSet.
VarFlagDepth is like VarFlag but the caller can control the call level at which the env var usage assertion is done.