[ 
https://issues.apache.org/jira/browse/MYNEWT-494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15727276#comment-15727276
 ] 

ASF subversion and git services commented on MYNEWT-494:
--------------------------------------------------------

Commit 524a6ea7206687b8e3ccacfa894483b6a76990b7 in incubator-mynewt-core's 
branch refs/heads/develop from [~ccollins476]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-mynewt-core.git;h=524a6ea 
]

MYNEWT-494 assert no duplicate shell commands

This commit adds a new syscfg var: SHELL_DEBUG.  If this setting is
enabled, the shell package asserts that no two commands with the same
name get registered.


> Shell should assert() when a duplicate name/entry is registered.
> ----------------------------------------------------------------
>
>                 Key: MYNEWT-494
>                 URL: https://issues.apache.org/jira/browse/MYNEWT-494
>             Project: Mynewt
>          Issue Type: Improvement
>    Affects Versions: v1_0_0_beta1
>            Reporter: Sterling Hughes
>            Assignee: Christopher Collins
>             Fix For: v1_0_0_rel
>
>
> Right now it just inserts it into the list, which can create a circular list 
> search, when, for example calling shell help.  It also just calls the first 
> handler it finds when you issue the command.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to