-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mbed: config: print detailed help in subcommand #865
Conversation
Previous and new behavior details
|
mbed/mbed.py
Outdated
@@ -3250,7 +3250,9 @@ def config_(var=None, value=None, global_cfg=False, unset=False, list_config=Fal | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps we should exit() here?
@bridadan @theotherjimmy Please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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