Skip to content

Commit

Permalink
Make the help text for write-by-id say the right thing about the valu…
Browse files Browse the repository at this point in the history
…e list.

#20413 changed the value
separator from comma to semicolon, but did not change the help text.

Fixes #31854
  • Loading branch information
bzbarsky-apple committed Feb 2, 2024
1 parent e4c4c38 commit 57728b2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/chip-tool/commands/clusters/WriteAttributeCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class WriteAttribute : public InteractionModelWriter, public ModelCommand, publi
template <typename U = T, std::enable_if_t<std::is_same<U, std::vector<CustomArgument *>>::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"
Expand All @@ -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."; }
Expand Down

0 comments on commit 57728b2

Please sign in to comment.