@@ -2177,18 +2177,27 @@ def config_(var, value=None, global_cfg=False, unset=False):
2177
2177
@subcommand ('target' ,
2178
2178
dict (name = 'name' , nargs = '?' , help = 'Default target name. Example: K64F, NUCLEO_F401RE, NRF51822...' ),
2179
2179
dict (name = ['-G' , '--global' ], dest = 'global_cfg' , action = 'store_true' , help = 'Use global settings, not local' ),
2180
+ dict (name = ['-S' , '--supported' ], dest = 'supported' , action = 'store_true' , help = 'Shows supported matrix of targets and toolchains' ),
2180
2181
help = 'Set or get default target' ,
2181
2182
description = (
2182
- "This is an alias to 'mbed config target [--global] [name]'\n " ))
2183
- def target_ (name = None , global_cfg = False ):
2183
+ "Set or get default toolchain\n "
2184
+ "This is an alias to 'mbed config [--global] target [name]'\n " ))
2185
+ def target_ (name = None , global_cfg = False , supported = False ):
2186
+ if supported :
2187
+ return compile_ (supported = supported )
2184
2188
return config_ ('target' , name , global_cfg = global_cfg )
2185
2189
2186
2190
@subcommand ('toolchain' ,
2187
2191
dict (name = 'name' , nargs = '?' , help = 'Default toolchain name. Example: ARM, uARM, GCC_ARM, IAR' ),
2192
+ dict (name = ['-G' , '--global' ], dest = 'global_cfg' , action = 'store_true' , help = 'Use global settings, not local' ),
2193
+ dict (name = ['-S' , '--supported' ], dest = 'supported' , action = 'store_true' , help = 'Shows supported matrix of targets and toolchains' ),
2188
2194
help = 'Set or get default toolchain\n \n ' ,
2189
2195
description = (
2190
- "This is an alias to 'mbed config toolchain [--global] [name]'\n " ))
2191
- def toolchain_ (name = None , global_cfg = False ):
2196
+ "Set or get default toolchain\n "
2197
+ "This is an alias to 'mbed config [--global] toolchain [name]'\n " ))
2198
+ def toolchain_ (name = None , global_cfg = False , supported = False ):
2199
+ if supported :
2200
+ return compile_ (supported = supported )
2192
2201
return config_ ('toolchain' , name , global_cfg = global_cfg )
2193
2202
2194
2203
@subcommand ('help' ,
0 commit comments