michal-narajowski opened a new pull request #1347: sys/shell: Fix command parameters completion URL: https://github.com/apache/mynewt-core/pull/1347 When trying to complete parameters for a command for which there are other commands with the same prefix, get_command_from_module function would return the first command with matching prefix instead of the first command that matches exactly. For the following example, when trying to list available params for command 'set' the shell would print out parameters for command 'set-scan-opts'. ``` set-scan-opts set set-adv-data set-scan-rsp set-priv-mode ``` This patch fixes this issue by ensuring that the found command matches exactly with the typed one.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
