diff --git a/lm_eval/__main__.py b/lm_eval/__main__.py index 182e898a15..40e4237a30 100644 --- a/lm_eval/__main__.py +++ b/lm_eval/__main__.py @@ -184,8 +184,9 @@ def cli_evaluate(args: Union[argparse.Namespace, None] = None) -> None: sys.exit() elif args.tasks == "list": eval_logger.info( - "Available Tasks:\n - {}".format("\n - ".join(task_manager.all_tasks())) + "Available Tasks:\n - {}".format("\n - ".join(task_manager.all_tasks)) ) + sys.exit() else: if os.path.isdir(args.tasks): import glob