@@ -2134,7 +2134,7 @@ def status_(ignore=False):
2134
2134
dict (name = '--build' , help = 'Build directory. Default: build/' ),
2135
2135
dict (name = ['-c' , '--clean' ], action = 'store_true' , help = 'Clean the build directory before compiling' ),
2136
2136
dict (name = ['-N' , '--artifact-name' ], help = 'Name of the built program or library' ),
2137
- dict (name = ['-S' , '--supported' ], dest = 'supported' , action = 'store_true' , help = 'Shows supported matrix of targets and toolchains' ),
2137
+ dict (name = ['-S' , '--supported' ], dest = 'supported' , const = "matrix" , choices = [ "matrix" , "toolchains" , "targets" ], nargs = "?" , help = 'Shows supported matrix of targets and toolchains' ),
2138
2138
dict (name = '--app-config' , dest = "app_config" , help = "Path of an app configuration file (Default is to look for 'mbed_app.json')" ),
2139
2139
help = 'Compile code using the mbed build tools' ,
2140
2140
description = ("Compile this program using the mbed build tools." ))
@@ -2158,7 +2158,7 @@ def compile_(toolchain=None, target=None, profile=False, compile_library=False,
2158
2158
2159
2159
if supported :
2160
2160
popen (['python' , '-u' , os .path .join (tools_dir , 'make.py' )]
2161
- + (['-S' ] if supported else []) + (['-v' ] if very_verbose else [])
2161
+ + (['-S' , supported ] if supported else []) + (['-v' ] if very_verbose else [])
2162
2162
+ (['--app-config' , app_config ] if app_config else [])
2163
2163
+ args ,
2164
2164
env = env )
0 commit comments