def run(self, *args):
        params = self.parser.parse_args(args)
        config_file = os.path.expanduser('~/.sortinghat')
        if params.action == 'get':
            code = self.get(params.parameter, config_file)
        elif params.action == 'set':
            code = self.set(params.parameter, params.value, config_file)
        else:
            raise RuntimeError("Not get or set action given")
        return code