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.

[ Full content available at: https://github.com/apache/mynewt-core/pull/1347 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to