From 57728b2c2124b93f3d5b5fab2e33bb9e415edfd9 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Fri, 2 Feb 2024 13:51:48 -0500 Subject: [PATCH] Make the help text for write-by-id say the right thing about the value list. https://github.com/project-chip/connectedhomeip/pull/20413 changed the value separator from comma to semicolon, but did not change the help text. Fixes https://github.com/project-chip/connectedhomeip/issues/31854 --- .../chip-tool/commands/clusters/WriteAttributeCommand.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/chip-tool/commands/clusters/WriteAttributeCommand.h b/examples/chip-tool/commands/clusters/WriteAttributeCommand.h index 4fd49ac72b6c5e..ecef4cfaae755f 100644 --- a/examples/chip-tool/commands/clusters/WriteAttributeCommand.h +++ b/examples/chip-tool/commands/clusters/WriteAttributeCommand.h @@ -195,7 +195,7 @@ class WriteAttribute : public InteractionModelWriter, public ModelCommand, publi template >::value, int> = 0> static const char * GetAttributeValuesDescription() { - return "Comma-separated list of attribute values to write. Each value is represented as follows, depending on the type:\n" + return "Semicolon-separated list of attribute values to write. Each value is represented as follows, depending on the type:\n" " * struct: a JSON-encoded object, with field ids as keys.\n" " * list: a JSON-encoded array of values.\n" " * null: A literal null.\n" @@ -213,7 +213,9 @@ class WriteAttribute : public InteractionModelWriter, public ModelCommand, publi " a) The number directly, if it's not an integer.\n" " b) A string starting with \"d:\" followed by the number.\n" " * octet string: A string starting with \"hex:\" followed by the hex encoding of the bytes.\n" - " * string: A string with the characters."; + " * string: A string with the characters.\n" + "\n" + " Example values: '10;20', '10;\"u:20\"', '\"hex:aabbcc\";\"hello\"'."; } static const char * GetTypedAttributeValuesDescription() { return "Comma-separated list of attribute values to write."; }