Skip to content

Commit

Permalink
[chip-tool] Interactive mode does not work great with complex/custom …
Browse files Browse the repository at this point in the history
…arguments using json formatting (#20615)
  • Loading branch information
vivien-apple authored Jul 14, 2022
1 parent a7c94d0 commit 4bb1abd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ bool InteractiveStartCommand::ParseCommand(char * command)
std::string arg;

std::stringstream ss(command);
while (ss >> std::quoted(arg))
while (ss >> std::quoted(arg, '\''))
{
if (argsCount == kInteractiveModeArgumentsMaxLength)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void ENFORCE_FORMAT(3, 0) LoggingCallback(const char * module, uint8_t category,
std::string arg;

std::stringstream ss(command);
while (ss >> std::quoted(arg)) {
while (ss >> std::quoted(arg, '\'')) {
if (argsCount == kInteractiveModeArgumentsMaxLength) {
ChipLogError(chipTool, "Too many arguments. Ignoring.");
return YES;
Expand Down

0 comments on commit 4bb1abd

Please sign in to comment.