Merge pull request #6564 from stephen-nju/fix_ray
Fix ray Former-commit-id: d4566839369726023f1b6e8f4b2332bda0c715cc
This commit is contained in:
@@ -75,7 +75,7 @@ def _parse_args(
|
||||
|
||||
(*parsed_args, unknown_args) = parser.parse_args_into_dataclasses(args=args, return_remaining_strings=True)
|
||||
|
||||
if unknown_args:
|
||||
if unknown_args and not allow_extra_keys:
|
||||
print(parser.format_help())
|
||||
print(f"Got unknown args, potentially deprecated arguments: {unknown_args}")
|
||||
raise ValueError(f"Some specified arguments are not used by the HfArgumentParser: {unknown_args}")
|
||||
|
||||
Reference in New Issue
Block a user