Skip to content

Commit b337c7f

Browse files
committed
Merge pull request #63 from bridadan/set-project-name-option
Allow the output binary of make.py to be named from the command line
2 parents bd37e5a + dac4916 commit b337c7f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/make.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@
9999
default=None, help="Duration of the test")
100100
parser.add_option("--build", dest="build_dir",
101101
default=None, help="The build (output) directory")
102+
parser.add_option("-N", "--artifact-name", dest="artifact_name",
103+
default=None, help="The built project's name")
102104
parser.add_option("-d", "--disk", dest="disk",
103105
default=None, help="The mbed disk")
104106
parser.add_option("-s", "--serial", dest="serial",
@@ -253,7 +255,8 @@
253255
verbose=options.verbose,
254256
silent=options.silent,
255257
macros=options.macros,
256-
jobs=options.jobs)
258+
jobs=options.jobs,
259+
name=options.artifact_name)
257260
print 'Image: %s'% bin_file
258261

259262
if options.disk:

0 commit comments

Comments
 (0)