def do_clone(self, args):
        try:
            #add arguments
            doParser = self.arg_clone()
            try:
                doArgs = doParser.parse_args(args.split())
            except __HOLE__ as e:
                return
                #call UForge API
            printer.out("Clonnig template with id ["+doArgs.id+"] ...")
            myAppliance = appliance()
            myAppliance.name = doArgs.name
            myAppliance.version = doArgs.version
            rAppliance = self.api.Users(self.login).Appliances(doArgs.id).Clones.Clone(myAppliance)
            if type(rAppliance) is Appliance:
                printer.out("Clonned successfully", printer.OK)
            else:
                printer.out("Clone error", printer.ERROR)
        except ArgumentParserError as e:
            printer.out("ERROR: In Arguments: "+str(e), printer.ERROR)
            self.help_clone()
        except Exception as e:
            return handle_uforge_exception(e)
dataset/ETHPy150Open usharesoft/hammr/src/hammr/commands/template/template.py/Template.do_clone