def handle(self, *args, **options):
        try:
            build_path, version, build_number = args
        except __HOLE__:
            raise CommandError('Usage: %s\n%s' % (self.args, self.help))

        try:
            build_number = int(build_number)
        except ValueError:
            raise CommandError("Build Number %r is not an integer" % build_number)

        try:
            CommCareBuild.create_from_zip(build_path, version, build_number)
        except Exception as e:
            raise CommandError("%s" % e)
        self.stdout.write('Build %s #%s created\n' % (version, build_number))
        self.stdout.write('You can see a list of builds at [your-server]/builds/\n')
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/builds/management/commands/add_commcare_build.py/Command.handle