Skip to content

Commit 262c737

Browse files
committed
Specify --build in mbed export: consistency with compile
1 parent 9252b98 commit 262c737

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tools/project.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ def main():
163163
default=False,
164164
help="writes tools/export/README.md")
165165

166+
parser.add_argument("--build",
167+
type=argparse_filestring_type,
168+
dest="build_dir",
169+
default=None,
170+
help="Directory for the exported project files")
171+
166172
parser.add_argument("--source",
167173
action="append",
168174
type=argparse_filestring_type,
@@ -262,7 +268,8 @@ def main():
262268
export(mcu, options.ide, build=options.build,
263269
src=options.source_dir, macros=options.macros,
264270
project_id=options.program, zip_proj=zip_proj,
265-
build_profile=profile, app_config=options.app_config)
271+
build_profile=profile, app_config=options.app_config,
272+
export_path=options.build_dir)
266273
except NotSupportedException as exc:
267274
print("[ERROR] %s" % str(exc))
268275

0 commit comments

Comments
 (0)