Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
29cb9ecb
Commit
29cb9ecb
authored
Aug 25, 2025
by
Baber
Browse files
add todo
parent
71cddf6b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
lm_eval/_cli/harness.py
lm_eval/_cli/harness.py
+1
-0
No files found.
lm_eval/_cli/harness.py
View file @
29cb9ecb
...
@@ -47,6 +47,7 @@ class HarnessCLI:
...
@@ -47,6 +47,7 @@ class HarnessCLI:
"""Parse arguments using the main parser."""
"""Parse arguments using the main parser."""
if
len
(
sys
.
argv
)
>
2
and
sys
.
argv
[
1
]
not
in
self
.
_subparsers
.
choices
:
if
len
(
sys
.
argv
)
>
2
and
sys
.
argv
[
1
]
not
in
self
.
_subparsers
.
choices
:
# Backward compatibility: arguments provided but no valid subcommand - insert 'run'
# Backward compatibility: arguments provided but no valid subcommand - insert 'run'
# TODO: add warning
sys
.
argv
.
insert
(
1
,
"run"
)
sys
.
argv
.
insert
(
1
,
"run"
)
elif
len
(
sys
.
argv
)
==
2
and
"run"
in
sys
.
argv
:
elif
len
(
sys
.
argv
)
==
2
and
"run"
in
sys
.
argv
:
# if only 'run' is specified, ensure it is treated as a subcommand
# if only 'run' is specified, ensure it is treated as a subcommand
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment