Documentation ¶
Index ¶
- func InitFlags(flags *pflag.FlagSet)
- func PrintFlags(flags *pflag.FlagSet)
- func PrintSections(w io.Writer, fss NamedFlagSets, cols int)
- func WarnWordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
- func WordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
- type NamedFlagSets
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintSections ¶
func PrintSections(w io.Writer, fss NamedFlagSets, cols int)
PrintSections 按照终端宽度,打印所有标识集的useage
func WarnWordSepNormalizeFunc ¶
func WarnWordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
WarnWordSepNormalizeFunc 带下划线的选项增加警告日志
func WordSepNormalizeFunc ¶
func WordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
WordSepNormalizeFunc 标准化标识集名称 下划线修改为中划线
Types ¶
Click to show internal directories.
Click to hide internal directories.