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

David G. Simmons commented on MYNEWT-543:
-----------------------------------------

It may be the expected behavior by the designer, but it certainly isn't 
expected by the user :-) It would be helpful to note in the documentation that 
the newt target set command will *erase* any previously defined variables, not 
just override them.

I might suggest also that the newt target set for syscfg values warn a user 
that existing values will be erased if there are already syscfg values set. 

> setting sys cfg values via newt erases old settings
> ---------------------------------------------------
>
>                 Key: MYNEWT-543
>                 URL: https://issues.apache.org/jira/browse/MYNEWT-543
>             Project: Mynewt
>          Issue Type: Bug
>          Components: Newt
>    Affects Versions: v1_0_0_beta1
>         Environment: Mac OS X
>            Reporter: David G. Simmons
>            Assignee: Wanda Chiu
>            Priority: Minor
>             Fix For: v1_0_0_rel
>
>
> DSimmons-Pro:myproj dsimmons$ cat targets/air_q/syscfg.yml
> \### Package: targets/air_q
> syscfg.vals:
>     OPENOCD_DEBUG: 1
>     \# Enable the shell task.
>     SHELL_TASK: 1
>     STATS_CLI: 1
>     CONSOLE_TICKS: 1
>     CONSOLE_PROMPT: 1
> DSimmons-Pro:myproj dsimmons$ newt target set air_q  syscfg=OPENOCD_DEBUG=0
> Target targets/air_q successfully set target.syscfg to OPENOCD_DEBUG=0
> DSimmons-Pro:myproj dsimmons$ cat targets/air_q/syscfg.yml
> \### Package: targets/air_q
> syscfg.vals:
>     OPENOCD_DEBUG: 0
> DSimmons-Pro:myproj dsimmons$



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to