def main(): if len(sys.argv) < 2: print("Usage: python script.py --task-text 'текст задания'") return # Find the flag and its value try: idx = sys.argv.index("--task-text") task_text = sys.argv[idx + 1] except (ValueError, IndexError): print("Error: '--task-text' flag not found or missing value.") return # Here you would normally process the task text with your orchestrator logic. # For demonstration, we simply echo it back. print(f"Received task text: {task_text}") if __name__ == "__main__": main()