Specify --build in mbed export: consistency with compile

pull/6143/head
Jimmy Brisson 2018-02-20 10:44:42 -06:00
parent 9252b98050
commit 262c737c76
1 changed files with 8 additions and 1 deletions

View File

@ -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,
@ -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))