@@ -2256,7 +2256,7 @@ def status_(ignore=False):
2256
2256
dict (name = ['-c' , '--clean' ], action = 'store_true' , help = 'Clean the build directory before compiling' ),
2257
2257
dict (name = ['-f' , '--flash' ], action = 'store_true' , help = 'Flash the built firmware onto a connected target.' ),
2258
2258
dict (name = ['-N' , '--artifact-name' ], help = 'Name of the built program or library' ),
2259
- dict (name = ['-S' , '--supported' ], dest = 'supported' , const = "matrix" , choices = ["matrix" , "toolchains" , "targets" ], nargs = "?" , help = 'Shows supported matrix of targets and toolchains' ),
2259
+ dict (name = ['-S' , '--supported' ], dest = 'supported' , const = True , choices = ["matrix" , "toolchains" , "targets" ], nargs = "?" , help = 'Shows supported matrix of targets and toolchains' ),
2260
2260
dict (name = '--app-config' , dest = "app_config" , help = "Path of an app configuration file (Default is to look for 'mbed_app.json')" ),
2261
2261
help = 'Compile code using the mbed build tools' ,
2262
2262
description = ("Compile this program using the mbed build tools." ))
@@ -2280,7 +2280,7 @@ def compile_(toolchain=None, target=None, profile=False, compile_library=False,
2280
2280
2281
2281
if supported :
2282
2282
popen ([python_cmd , '-u' , os .path .join (tools_dir , 'make.py' )]
2283
- + (['-S' , supported ] if supported else []) + (['-v' ] if very_verbose else [])
2283
+ + (['-S' , supported ] if ( supported is not True ) else ['-S' ]) + (['-v' ] if very_verbose else [])
2284
2284
+ (['--app-config' , app_config ] if app_config else [])
2285
2285
+ args ,
2286
2286
env = env )
@@ -2470,7 +2470,7 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False, compi
2470
2470
dict (name = ['-m' , '--target' ], help = 'Export for target MCU. Example: K64F, NUCLEO_F401RE, NRF51822...' ),
2471
2471
dict (name = '--source' , action = 'append' , help = 'Source directory. Default: . (current dir)' ),
2472
2472
dict (name = ['-c' , '--clean' ], action = 'store_true' , help = 'Clean the build directory before compiling' ),
2473
- dict (name = ['-S' , '--supported' ], dest = 'supported' , const = "matrix" , choices = [" matrix" , " ides" ], nargs = "?" , help = 'Shows supported matrix of targets and toolchains' ),
2473
+ dict (name = ['-S' , '--supported' ], dest = 'supported' , const = True , choices = [' matrix' , ' ides' ], nargs = '?' , help = 'Shows supported matrix of targets and toolchains' ),
2474
2474
dict (name = '--app-config' , dest = "app_config" , help = "Path of an app configuration file (Default is to look for 'mbed_app.json')" ),
2475
2475
help = 'Generate an IDE project' ,
2476
2476
description = (
@@ -2492,7 +2492,7 @@ def export(ide=None, target=None, source=False, clean=False, supported=False, ap
2492
2492
2493
2493
if supported :
2494
2494
popen ([python_cmd , '-u' , os .path .join (tools_dir , 'project.py' )]
2495
- + (['-S' , supported ] if supported else []) + (['-v' ] if very_verbose else []),
2495
+ + (['-S' , supported ] if ( supported is not True ) else ['-S' ]) + (['-v' ] if very_verbose else []),
2496
2496
env = env )
2497
2497
return
2498
2498
0 commit comments