Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlagString ¶ added in v0.2.5
func FlagString(f cli.Flag) string
FlagString prints a single flag in help.
func Merge ¶ added in v0.4.0
func Merge(groups ...[]cli.Flag) []cli.Flag
Merge merges the given flag slices.
func MigrateGlobalFlags ¶ added in v0.2.5
func MigrateGlobalFlags(ctx *cli.Context)
MigrateGlobalFlags makes all global flag values available in the context. This should be called as early as possible in app.Before.
Example:
geth account new --keystore /tmp/mykeystore --lightkdf
is equivalent after calling this method with:
geth --keystore /tmp/mykeystore --lightkdf account new
i.e. in the subcommand Action function of 'account new', ctx.Bool("lightkdf) will return true even if --lightkdf is set as a global option.
This function may become unnecessary when https://github.com/urfave/cli/pull/1245 is merged.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.