ARMmbed / mbed-cli

Arm Mbed Command Line Interface
https://os.mbed.com
Apache License 2.0
333 stars 176 forks source link

Target listing should be a separate command in mbed-cli #282

Closed janjongboom closed 8 years ago

janjongboom commented 8 years ago

Maybe when running mbed target list or so?

janjongboom commented 8 years ago

OK, so it's under --supported in the compile command, but I think it should be in a more obvious position.

screamerbg commented 8 years ago

There are 2 very different workflows - building and export. Unifying these under mbed target list might be confusing as targets do not have the same level of support for both build and exporting, e.g. is a board from mbed target list supported in the build system or in the exporters.

screamerbg commented 8 years ago

This is already supported via mbed target -S/--supported. The option is also listed in mbed target --help

mbed target -h
usage: mbed target [-h] [-G] [-S] [-v] [-vv] [name]

Set or get default toolchain
This is an alias to 'mbed config [--global] target [name]'

positional arguments:
  name                 Default target name. Example: K64F, NUCLEO_F401RE,
                       NRF51822...

optional arguments:
  -h, --help           show this help message and exit
  -G, --global         Use global settings, not local
  -S, --supported      Shows supported matrix of targets and toolchains
  -v, --verbose        Verbose diagnostic output
  -vv, --very_verbose  Very verbose diagnostic output