Bug 1240945 - Add a --verbose option to mach package. r=mshal

This commit is contained in:
Mike Hommey 2016-01-20 08:40:37 +09:00
parent cb01c6d8af
commit 91ad32f0f1

View File

@ -1009,8 +1009,11 @@ class Package(MachCommandBase):
@Command('package', category='post-build',
description='Package the built product for distribution as an APK, DMG, etc.')
def package(self):
ret = self._run_make(directory=".", target='package', ensure_exit_code=False)
@CommandArgument('-v', '--verbose', action='store_true',
help='Verbose output for what commands the packaging process is running.')
def package(self, verbose=False):
ret = self._run_make(directory=".", target='package',
silent=not verbose, ensure_exit_code=False)
if ret == 0:
self.notify('Packaging complete')
return ret