Skip to content

Commit

Permalink
Specify --build in mbed export: consistency with compile
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherjimmy committed Feb 28, 2018
1 parent 9252b98 commit 262c737
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tools/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ def main():
default=False,
help="writes tools/export/README.md")

parser.add_argument("--build",
type=argparse_filestring_type,
dest="build_dir",
default=None,
help="Directory for the exported project files")

parser.add_argument("--source",
action="append",
type=argparse_filestring_type,
Expand Down Expand Up @@ -262,7 +268,8 @@ def main():
export(mcu, options.ide, build=options.build,
src=options.source_dir, macros=options.macros,
project_id=options.program, zip_proj=zip_proj,
build_profile=profile, app_config=options.app_config)
build_profile=profile, app_config=options.app_config,
export_path=options.build_dir)
except NotSupportedException as exc:
print("[ERROR] %s" % str(exc))

Expand Down

0 comments on commit 262c737

Please sign in to comment.