Skip to content

Commit f035080

Browse files
Merge pull request #757 from alekla01/export-requirements
add --no-requirements for export
2 parents 58c5557 + 1567ae1 commit f035080

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
@@ -2994,15 +2994,17 @@ def dev_mgmt(toolchain=None, target=None, source=False, profile=False, build=Fal
29942994
dict(name=['-c', '--clean'], action='store_true', help='Clean the build directory before compiling'),
29952995
dict(name=['-S', '--supported'], dest='supported', const=True, choices=['matrix', 'ides'], nargs='?', help='Shows supported matrix of targets and toolchains'),
29962996
dict(name='--app-config', dest="app_config", help="Path of an application configuration file. Default is to look for \"mbed_app.json\""),
2997+
dict(name='--no-requirements', action='store_true', help='Disables checking for and installing any requirements.'),
29972998
help='Generate an IDE project',
29982999
description=(
29993000
"Generate IDE project files for the current program."))
3000-
def export(ide=None, target=None, source=False, clean=False, supported=False, app_config=None):
3001+
def export(ide=None, target=None, source=False, clean=False, supported=False, app_config=None, no_requirements=False):
30013002
# Gather remaining arguments
30023003
args = remainder
30033004
# Find the root of the program
30043005
program = Program(getcwd(), True)
3005-
program.check_requirements(True)
3006+
if not no_requirements:
3007+
program.check_requirements(True)
30063008
# Remember the original path. this is needed for compiling only the libraries and tests for the current folder.
30073009
orig_path = getcwd()
30083010
# Change directories to the program root to use mbed OS tools

0 commit comments

Comments
 (0)