@@ -2326,7 +2326,7 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False, compi
2326
2326
dict (name = ['-m' , '--target' ], help = 'Export for target MCU. Example: K64F, NUCLEO_F401RE, NRF51822...' ),
2327
2327
dict (name = '--source' , action = 'append' , help = 'Source directory. Default: . (current dir)' ),
2328
2328
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' ),
2330
2330
help = 'Generate an IDE project' ,
2331
2331
description = (
2332
2332
"Generate IDE project files for the current program." ))
@@ -2347,7 +2347,7 @@ def export(ide=None, target=None, source=False, clean=False, supported=False):
2347
2347
2348
2348
if supported :
2349
2349
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 []),
2351
2351
env = env )
2352
2352
return
2353
2353
0 commit comments