Fix solutions CI (#19675)

Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
Muhammad Rizwan Munawar 2025-03-13 15:50:54 +05:00 committed by GitHub
parent 950ce9b639
commit f9fdff5a28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -684,6 +684,9 @@ def handle_yolo_solutions(args: List[str]) -> None:
check_dict_alignment(full_args_dict, overrides) # dict alignment
# Get solution name
if not args:
LOGGER.warning("⚠️ No solution name provided. i.e `yolo solutions count`. Defaulting to 'count'.")
args = ["count"]
if args[0] == "help":
LOGGER.info(SOLUTIONS_HELP_MSG)
return # Early return for 'help' case