Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion libs/garf_executors/garf_executors/entrypoints/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ def _identify_param_pair(
if not identifier or identifier not in key:
return None
provided_identifier, *keys = key.split('.')
if not keys:
return None
if len(keys) > 1:
raise GarfParamsException(
f'{key} is invalid format,'
Expand All @@ -306,9 +308,10 @@ def _identify_param_pair(
)
provided_identifier = provided_identifier.replace('--', '')
if provided_identifier not in self.identifiers:
supported_arguments = ', '.join(self.identifiers)
raise GarfParamsException(
f'CLI argument {provided_identifier} is not supported'
f', supported arguments {", ".join(self.identifiers)}'
f', supported arguments {supported_arguments}'
)
if provided_identifier != identifier:
return None
Expand Down
Loading