@@ -2383,7 +2383,7 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False, compi
2383
2383
dict (name = ['-m' , '--target' ], help = 'Export for target MCU. Example: K64F, NUCLEO_F401RE, NRF51822...' ),
2384
2384
dict (name = '--source' , action = 'append' , help = 'Source directory. Default: . (current dir)' ),
2385
2385
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' ),
2387
2387
dict (name = '--app-config' , dest = "app_config" , help = "Path of an app configuration file (Default is to look for 'mbed_app.json')" ),
2388
2388
help = 'Generate an IDE project' ,
2389
2389
description = (
@@ -2404,8 +2404,8 @@ def export(ide=None, target=None, source=False, clean=False, supported=False, ap
2404
2404
env = program .get_env ()
2405
2405
2406
2406
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 []),
2409
2409
env = env )
2410
2410
return
2411
2411
0 commit comments