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

Function getDeprecatedFlagSet

flag_test.go:1101–1106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1099}
1100
1101func getDeprecatedFlagSet() *FlagSet {
1102 f := NewFlagSet("bob", ContinueOnError)
1103 f.Bool("badflag", true, "always true")
1104 f.MarkDeprecated("badflag", "use --good-flag instead")
1105 return f
1106}
1107
1108func TestDeprecatedFlagInDocs(t *testing.T) {
1109 f := getDeprecatedFlagSet()

Callers 2

TestDeprecatedFlagInDocsFunction · 0.85

Calls 3

BoolMethod · 0.95
MarkDeprecatedMethod · 0.95
NewFlagSetFunction · 0.85

Tested by

no test coverage detected