MCPcopy
hub / github.com/spf13/pflag / wordSepNormalizeFunc

Function wordSepNormalizeFunc

flag_test.go:744–750  ·  view source on GitHub ↗
(f *FlagSet, name string)

Source from the content-addressed store, hash-verified

742}
743
744func wordSepNormalizeFunc(f *FlagSet, name string) NormalizedName {
745 seps := []string{"-", "_"}
746 name = replaceSeparators(name, seps, ".")
747 normalizeFlagNameInvocations++
748
749 return NormalizedName(name)
750}
751
752func testWordSepNormalizedNames(args []string, t *testing.T) {
753 f := NewFlagSet("normalized", ContinueOnError)

Callers

nothing calls this directly

Calls 2

replaceSeparatorsFunction · 0.85
NormalizedNameTypeAlias · 0.85

Tested by

no test coverage detected