Spaces in CLI arguments

Is there a recommended way to allow spaces in CLI parameters?

Since they act as the delimiters, my current approach is to use a command with a variable number of arguments, wrap each arg in quotes when sending it over the CLI, and then just do string parsing on the entire passed in command string instead of using FreeRTOS_CLIGetParameter() like I normally would.

Is there a better way?

Thanks

Maybe you could add support for quoted parameters to FreeRTOS_CLIGetParameter(). Then if you like the result, you could open a pull-request to see what the FreeRTOS team thinks. Seems like a nice feature.

Thanks, I may do that. I have an implementation that works for my narrow use case, and I think I can modify it to be a clean edit of FreeRTOS_CLIGetParameter().

1 Like