Skip to content

Commit 3dc974b

Browse files
CLOUDP-230973: Changed 'string' to 'key=value' for StringToString (#52)
1 parent dfe3bbd commit 3dc974b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cobra2snooty_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func TestGenDocs(t *testing.T) {
142142
checkStringOmits(t, output, deprecatedCmd.Short)
143143

144144
// Verify that the text "This value defaults to" is not printed when the default value is provided to StringToStringP
145-
checkStringContains(t, output, "* - -x, --stringtostring\n - string\n - false\n - help message for flag stringtostring\n *")
145+
checkStringContains(t, output, "* - -x, --stringtostring\n - key=value\n - false\n - help message for flag stringtostring\n *")
146146
}
147147

148148
func TestGenDocsNoHiddenParents(t *testing.T) {

flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const (
3333

3434
var (
3535
varnameMap = map[string]string{
36-
"stringToString": "string",
36+
"stringToString": "key=value",
3737
}
3838
)
3939

0 commit comments

Comments
 (0)