def runCommand(self, cfg, argSet, args, profile = False,
                   callback = None, repos = None):
        args = args[2:]
        troveSpecs = []
        labelList = []
        for arg in args:
            if '--' in arg:
                labelList.append(arg.split('--', 1))
            else:
                troveSpecs.append(arg)
        if not labelList or not troveSpecs:
            return self.usage()

        from conary.cmds import clone
        skipBuildInfo = argSet.pop('skip-build-info', False)
        info = argSet.pop('info', False)
        message = argSet.pop("message", None)
        test = argSet.pop("test", False)
        allFlavors = argSet.pop("all-flavors", True)
        cloneSources = not argSet.pop("without-sources", False)
        argSet.pop("with-sources", False)
        targetFile = argSet.pop("to-file", False)
        defaultOnly = argSet.pop("default-only", False)
        exactFlavors = argSet.pop("exact-flavors", False)
        excludeGroups = argSet.pop("exclude-groups", False)
        clone.promoteTroves(cfg, troveSpecs, labelList,
                            skipBuildInfo=skipBuildInfo,
                            info = info, message = message, test = test,
                            cloneSources=cloneSources, allFlavors=allFlavors,
                            cloneOnlyByDefaultTroves=defaultOnly,
                            targetFile=targetFile, exactFlavors=exactFlavors,
                            excludeGroups=excludeGroups)
dataset/ETHPy150Open sassoftware/conary/conary/cmds/cvccmd.py/PromoteCommand.runCommand/original