Skip to content

Commit d3248fb

Browse files
committed
Added list support to mbed compile
1 parent b680aa7 commit d3248fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mbed/mbed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2134,7 +2134,7 @@ def status_(ignore=False):
21342134
dict(name='--build', help='Build directory. Default: build/'),
21352135
dict(name=['-c', '--clean'], action='store_true', help='Clean the build directory before compiling'),
21362136
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'),
21382138
dict(name='--app-config', dest="app_config", help="Path of an app configuration file (Default is to look for 'mbed_app.json')"),
21392139
help='Compile code using the mbed build tools',
21402140
description=("Compile this program using the mbed build tools."))
@@ -2158,7 +2158,7 @@ def compile_(toolchain=None, target=None, profile=False, compile_library=False,
21582158

21592159
if supported:
21602160
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 [])
21622162
+ (['--app-config', app_config] if app_config else [])
21632163
+ args,
21642164
env=env)

0 commit comments

Comments
 (0)