def _get_dispatch_command(self):
        default_func = self._meta.default_func
        default_func_key = re.sub('_', '-', self._meta.default_func)

        if (len(self.app.argv) <= 0) or (self.app.argv[0].startswith('-')):
            # if no command is passed, then use default
            if default_func_key in self._dispatch_map.keys():
                self._dispatch_command = self._dispatch_map[default_func_key]

        elif self.app.argv[0] in self._dispatch_map.keys():
            self._dispatch_command = self._dispatch_map[self.app.argv[0]]
            self.app.argv.pop(0)
        else:
            # check for default again (will get here if command line has
            # positional arguments that don't start with a -)
            if self._dispatch_map.keys() in default_func_key:
                self._dispatch_command = self._dispatch_map[default_func_key]
dataset/ETHPy150Open datafolklabs/cement/cement/core/controller.py/CementBaseController._get_dispatch_command/swapped operands of `in`