Skip to content

Commit 48d9708

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

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
@@ -2374,7 +2374,7 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False, compi
23742374
dict(name=['-m', '--target'], help='Export for target MCU. Example: K64F, NUCLEO_F401RE, NRF51822...'),
23752375
dict(name='--source', action='append', help='Source directory. Default: . (current dir)'),
23762376
dict(name=['-c', '--clean'], action='store_true', help='Clean the build directory before compiling'),
2377-
dict(name=['-S', '--supported'], dest='supported', action='store_true', help='Shows supported matrix of targets and toolchains'),
2377+
dict(name=['-S', '--supported'], dest='supported', const="matrix", choices=["matrix", "ides"], nargs="?", help='Shows supported matrix of targets and toolchains'),
23782378
help='Generate an IDE project',
23792379
description=(
23802380
"Generate IDE project files for the current program."))
@@ -2394,8 +2394,8 @@ def export(ide=None, target=None, source=False, clean=False, supported=False):
23942394
env = program.get_env()
23952395

23962396
if supported:
2397-
popen([python_cmd, '-u', os.path.join(tools_dir, 'project.py')]
2398-
+ (['-S'] if supported else []) + (['-v'] if very_verbose else []),
2397+
popen(['python', '-u', os.path.join(tools_dir, 'project.py')]
2398+
+ (['-S', supported] if supported else []) + (['-v'] if very_verbose else []),
23992399
env=env)
24002400
return
24012401

0 commit comments

Comments
 (0)