def checkOptions(self):
        super(MainProgram, self).checkOptions()
        if not self.uuids:
            printError('Please provide at least one persistent disk UUID to detach')
        if self.options.instance < 0:
            printError('Please provide a VM ID on which to detach disk')
        try:
            self._retrieveVmNode()
        except OneException, e:
            printError(e)