Skip to content

Commit 1567ae1

Browse files
committed
add --no-requirements for export
1 parent a4e014f commit 1567ae1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mbed/mbed.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2990,15 +2990,17 @@ def dev_mgmt(toolchain=None, target=None, source=False, profile=False, build=Fal
29902990
dict(name=['-c', '--clean'], action='store_true', help='Clean the build directory before compiling'),
29912991
dict(name=['-S', '--supported'], dest='supported', const=True, choices=['matrix', 'ides'], nargs='?', help='Shows supported matrix of targets and toolchains'),
29922992
dict(name='--app-config', dest="app_config", help="Path of an application configuration file. Default is to look for \"mbed_app.json\""),
2993+
dict(name='--no-requirements', action='store_true', help='Disables checking for and installing any requirements.'),
29932994
help='Generate an IDE project',
29942995
description=(
29952996
"Generate IDE project files for the current program."))
2996-
def export(ide=None, target=None, source=False, clean=False, supported=False, app_config=None):
2997+
def export(ide=None, target=None, source=False, clean=False, supported=False, app_config=None, no_requirements=False):
29972998
# Gather remaining arguments
29982999
args = remainder
29993000
# Find the root of the program
30003001
program = Program(getcwd(), True)
3001-
program.check_requirements(True)
3002+
if not no_requirements:
3003+
program.check_requirements(True)
30023004
# Remember the original path. this is needed for compiling only the libraries and tests for the current folder.
30033005
orig_path = getcwd()
30043006
# Change directories to the program root to use mbed OS tools

0 commit comments

Comments
 (0)