Skip to content

UX: Fallback to detect connected target when none specified #774

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

Merged
merged 2 commits into from
Nov 1, 2018

Conversation

screamerbg
Copy link
Contributor

This small patch aims to improve the UX by falling back to detected connected target board when doing mbed compile or mbed test with no target specified. I.e.

Current behavior:

$ mbed test -t GCC_ARM
[mbed] ERROR: Please specify target using the -m switch or set default target using command "mbed target"

New behavior:

$ mbed test -t GCC_ARM
[mbed] Detected "NUCLEO_F401RE" connected to "E:" and using com port "COM3"
...

Note that if a target is set as local/global configuration flag, then that specific target will be used instead.

@screamerbg screamerbg requested review from cmonr and theotherjimmy and removed request for cmonr October 31, 2018 14:24
@screamerbg screamerbg merged commit e993263 into ARMmbed:master Nov 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants