Skip to content

Commit 43aa103

Browse files
committed
Deprecate 'mbed compile --tests' in favour of 'mbed test *' #225
1 parent 49f4aec commit 43aa103

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

mbed/mbed.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,18 +1886,13 @@ def status_(ignore=False):
18861886
dict(name='--library', dest='compile_library', action='store_true', help='Compile the current %s as a static library.' % cwd_type),
18871887
dict(name='--config', dest='compile_config', action='store_true', help='Show run-time compile configuration'),
18881888
dict(name='--prefix', dest='config_prefix', action='append', help='Restrict listing to parameters that have this prefix'),
1889-
dict(name='--tests', dest='compile_tests', action='store_true', help='An alias to \'mbed test --compile\''),
18901889
dict(name='--source', action='append', help='Source directory. Default: . (current dir)'),
18911890
dict(name='--build', help='Build directory. Default: .build/'),
18921891
dict(name=['-c', '--clean'], action='store_true', help='Clean the build directory before compiling'),
18931892
dict(name=['-S', '--supported'], dest='supported', action='store_true', help='Shows supported matrix of targets and toolchains'),
18941893
help='Compile code using the mbed build tools',
18951894
description=("Compile this program using the mbed build tools."))
1896-
def compile_(toolchain=None, mcu=None, source=False, build=False, compile_library=False, compile_config=False, config_prefix=None, compile_tests=False, clean=False, supported=False):
1897-
# Pipe --tests to mbed tests command
1898-
if compile_tests:
1899-
return test_(toolchain=toolchain, mcu=mcu, source=source, build=build, clean=clean, compile_only=True)
1900-
1895+
def compile_(toolchain=None, mcu=None, source=False, build=False, compile_library=False, compile_config=False, config_prefix=None, clean=False, supported=False):
19011896
# Gather remaining arguments
19021897
args = remainder
19031898
# Find the root of the program

0 commit comments

Comments
 (0)