mbed: config: print detailed help in subcommand#865
mbed: config: print detailed help in subcommand#865theotherjimmy merged 1 commit intoARMmbed:masterfrom
Conversation
|
Previous and new behavior details |
mbed/mbed.py
Outdated
| else: | ||
| value = program.get_cfg(var) | ||
| action(('%s' % value) if value else 'No default %s set in program "%s"' % (name, program.name)) | ||
| subcommands['config'].print_help() |
There was a problem hiding this comment.
perhaps we should exit() here?
|
@bridadan @theotherjimmy Please review |
bridadan
left a comment
There was a problem hiding this comment.
The supplied output seems really verbose. It's pretty easy to loose the actual error that occurred.
Is the concern that the current error output isn't helpful/accurate when a variable that has no effect is supplied to the mbed config command?
|
We also wanted to fix this list:
Tool paths are supported... and @theotherjimmy also mentioned colors I think the other goal was to reject variables that weren't legit. |
|
So just to be extra clear, fix the documentation about values are able to configured, and also error if an unsupported value is supplied? |
|
@bridadan Yes - sorry for the confusion! @theotherjimmy corrected the wording of the Issue here: #862 (comment) |
a58b5b9 to
8b306ce
Compare
|
Old New |
|
Todo: colors |
|
@naveenkaje colors can probably be in a separate PRs right? I don't think we do colors at all in mbed cli. |
8b306ce to
584845e
Compare
Sounds good to me |
584845e to
bd12d9a
Compare
|
@bridadan I think you may have misinterpreted "colors". @naveenkaje Is probably talking about adding the |
bd12d9a to
0f8b66d
Compare
Print detailed usage when unsupported arguments are supplied with mbed config subcommand
0f8b66d to
449606f
Compare
Print detailed usage when unsupported arguments are supplied with mbed config subcommand