Adds -N/--artifact-name argument to parser

Only makes sence for --source builds (which only work with --build)
pull/1955/head
Jimmy Brisson 2016-06-15 15:07:25 -05:00
parent 52e93aebd0
commit 6de4ea7e6f
1 changed files with 4 additions and 1 deletions

View File

@ -129,6 +129,8 @@ if __name__ == '__main__':
parser.add_option("-j", "--jobs", type="int", dest="jobs",
default=0, help="Number of concurrent jobs. Default: 0/auto (based on host machine's number of CPUs)")
parser.add_option("-N", "--artifact-name", dest="artifact_name",
default=None, help="The built project's name")
parser.add_option("-v", "--verbose",
action="store_true",
@ -242,7 +244,8 @@ if __name__ == '__main__':
jobs=options.jobs,
clean=options.clean,
archive=(not options.no_archive),
macros=options.macros)
macros=options.macros,
name=options.artifact_name)
else:
lib_build_res = build_mbed_libs(mcu, toolchain,
options=options.options,