@@ -2374,7 +2374,7 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False, compi
2374
2374
dict (name = ['-m' , '--target' ], help = 'Export for target MCU. Example: K64F, NUCLEO_F401RE, NRF51822...' ),
2375
2375
dict (name = '--source' , action = 'append' , help = 'Source directory. Default: . (current dir)' ),
2376
2376
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' ),
2378
2378
help = 'Generate an IDE project' ,
2379
2379
description = (
2380
2380
"Generate IDE project files for the current program." ))
@@ -2394,8 +2394,8 @@ def export(ide=None, target=None, source=False, clean=False, supported=False):
2394
2394
env = program .get_env ()
2395
2395
2396
2396
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 []),
2399
2399
env = env )
2400
2400
return
2401
2401
0 commit comments