diff --git a/examples/chip-tool/commands/interactive/InteractiveCommands.cpp b/examples/chip-tool/commands/interactive/InteractiveCommands.cpp index 28263ba287027d..33b030acb335c7 100644 --- a/examples/chip-tool/commands/interactive/InteractiveCommands.cpp +++ b/examples/chip-tool/commands/interactive/InteractiveCommands.cpp @@ -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) { diff --git a/examples/darwin-framework-tool/commands/interactive/InteractiveCommands.mm b/examples/darwin-framework-tool/commands/interactive/InteractiveCommands.mm index 04117ee487b50d..0a4089abf749c8 100644 --- a/examples/darwin-framework-tool/commands/interactive/InteractiveCommands.mm +++ b/examples/darwin-framework-tool/commands/interactive/InteractiveCommands.mm @@ -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;