Skip to content

Commit 02348ce

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mbed/mbed.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2383,7 +2383,7 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False, compi
23832383
dict(name=['-m', '--target'], help='Export for target MCU. Example: K64F, NUCLEO_F401RE, NRF51822...'),
23842384
dict(name='--source', action='append', help='Source directory. Default: . (current dir)'),
23852385
dict(name=['-c', '--clean'], action='store_true', help='Clean the build directory before compiling'),
2386-
dict(name=['-S', '--supported'], dest='supported', action='store_true', help='Shows supported matrix of targets and toolchains'),
2386+
dict(name=['-S', '--supported'], dest='supported', const="matrix", choices=["matrix", "ides"], nargs="?", help='Shows supported matrix of targets and toolchains'),
23872387
dict(name='--app-config', dest="app_config", help="Path of an app configuration file (Default is to look for 'mbed_app.json')"),
23882388
help='Generate an IDE project',
23892389
description=(
@@ -2404,8 +2404,8 @@ def export(ide=None, target=None, source=False, clean=False, supported=False, ap
24042404
env = program.get_env()
24052405

24062406
if supported:
2407-
popen([python_cmd, '-u', os.path.join(tools_dir, 'project.py')]
2408-
+ (['-S'] if supported else []) + (['-v'] if very_verbose else []),
2407+
popen(['python', '-u', os.path.join(tools_dir, 'project.py')]
2408+
+ (['-S', supported] if supported else []) + (['-v'] if very_verbose else []),
24092409
env=env)
24102410
return
24112411

0 commit comments

Comments
 (0)