def runCommand(self, cfg, argSet, args, profile = False,
                   callback = None, repos = None):
        args = args[1:]
        makeShadow =  (args[0] == "shadow")
        sourceOnly = argSet.pop('source-only', False)
        binaryOnly = argSet.pop('binary-only', False)
        targetFile = argSet.pop("to-file", None)
        info = argSet.pop('info', False)

        if argSet: return self.usage()
        if len(args) < 3: return self.usage()

        target = args[1]
        troveSpecs = args[2:]

        branch.branch(repos, cfg, target, troveSpecs, makeShadow = makeShadow,
                      sourceOnly = sourceOnly, binaryOnly = binaryOnly,
                      info = info, targetFile = targetFile)
dataset/ETHPy150Open sassoftware/conary/conary/cmds/cvccmd.py/BranchShadowCommand.runCommand/original