flagtools

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAllFlagsToPFlags

func AddAllFlagsToPFlags()

AddAllFlagsToPFlags adds all of the top level 'flag' package flags to the top level 'pflag' flags.

func AddFlagSetToPFlagSet

func AddFlagSetToPFlagSet(fsIn *flag.FlagSet, fsOut *pflag.FlagSet)

AddFlagSetToPFlagSet adds all of the flags in a 'flag.FlagSet' package flags to a 'pflag.FlagSet'.

func AddPFlagSetToPFlagSet

func AddPFlagSetToPFlagSet(fsFrom *pflag.FlagSet, fsTo *pflag.FlagSet)

AddPFlagSetToPFlagSet merges the flags of fsFrom into fsTo.

func InitFlags

func InitFlags()

InitFlags normalizes and parses the command line flags

func WordSepNormalizeFunc

func WordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName

WordSepNormalizeFunc changes all flags that contain "_" separators

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL