Skip to content

Commit f2d0a65

Browse files
authored
option to list custom tasks (#425)
1 parent 1fb7968 commit f2d0a65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lighteval/main_tasks.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ def inspect(
6767

6868

6969
@app.command()
70-
def list():
70+
def list(custom_tasks: Annotated[Optional[str], Option(help="Path to a file with custom tasks")] = None):
7171
"""
7272
List all tasks
7373
"""
7474
from lighteval.tasks.registry import Registry
7575

76-
registry = Registry(cache_dir=CACHE_DIR)
76+
registry = Registry(cache_dir=CACHE_DIR, custom_tasks=custom_tasks)
7777
registry.print_all_tasks()

0 commit comments

Comments
 (0)