Update docs and tests for --properties-separator flag

This commit is contained in:
Stephen Uridge
2025-01-22 09:53:51 +11:00
committed by Mike Farah
parent 8bf425b4d1
commit 1508f1fd5f
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -171,7 +171,7 @@ var propertyScenarios = []formatScenario{
},
{
description: "Encode properties - custom separator",
subdescription: "Use the --properties-customer-separator flag to specify your own key/value separator.",
subdescription: "Use the --properties-separator flag to specify your own key/value separator.",
input: samplePropertiesYaml,
expected: expectedPropertiesUnwrappedCustomSeparator,
scenarioType: "encode-custom-separator",
@@ -324,7 +324,7 @@ func documentUnwrappedEncodePropertyScenario(w *bufio.Writer, s formatScenario)
prefs.UseArrayBrackets = true
} else if s.scenarioType == "encode-custom-separator" {
prefs.KeyValueSeparator = " :@ "
useCustomSeparatorFlag = ` --properties-customer-separator=" :@ "`
useCustomSeparatorFlag = ` --properties-separator=" :@ "`
}
if expression != "" {