Skip to content

Commit 1b21489

Browse files
committed
Added listing ide support to export. Note this depends on ARMmbed/mbed-os#3993
1 parent d3248fb commit 1b21489

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mbed/mbed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2326,7 +2326,7 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False, compi
23262326
dict(name=['-m', '--target'], help='Export for target MCU. Example: K64F, NUCLEO_F401RE, NRF51822...'),
23272327
dict(name='--source', action='append', help='Source directory. Default: . (current dir)'),
23282328
dict(name=['-c', '--clean'], action='store_true', help='Clean the build directory before compiling'),
2329-
dict(name=['-S', '--supported'], dest='supported', action='store_true', help='Shows supported matrix of targets and toolchains'),
2329+
dict(name=['-S', '--supported'], dest='supported', const="matrix", choices=["matrix", "ides"], nargs="?", help='Shows supported matrix of targets and toolchains'),
23302330
help='Generate an IDE project',
23312331
description=(
23322332
"Generate IDE project files for the current program."))
@@ -2347,7 +2347,7 @@ def export(ide=None, target=None, source=False, clean=False, supported=False):
23472347

23482348
if supported:
23492349
popen(['python', '-u', os.path.join(tools_dir, 'project.py')]
2350-
+ (['-S'] if supported else []) + (['-v'] if very_verbose else []),
2350+
+ (['-S', supported] if supported else []) + (['-v'] if very_verbose else []),
23512351
env=env)
23522352
return
23532353

0 commit comments

Comments
 (0)