Add return check for 'yolo solutions help' (#17518)
This commit is contained in:
parent
f9d889dd4d
commit
3682f01d12
2 changed files with 4 additions and 1 deletions
|
|
@ -671,6 +671,9 @@ def handle_yolo_solutions(args: List[str]) -> None:
|
|||
)
|
||||
s_n = "count" # Default solution if none provided
|
||||
|
||||
if args and args[0] == "help": # Add check for return if user call `yolo solutions help`
|
||||
return
|
||||
|
||||
cls, method = SOLUTION_MAP[s_n] # solution class name, method name and default source
|
||||
|
||||
from ultralytics import solutions # import ultralytics solutions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue