#!/opt/homebrew/bin/python3.11 """ Test script to see what arguments are being passed """ import sys import json print("Arguments received:") for i, arg in enumerate(sys.argv): print(f" {i}: {arg}") # Write output file output = {"success": True, "message": "Test successful", "args": sys.argv} # Output path should be the second argument if len(sys.argv) > 2: output_path = sys.argv[2] with open(output_path, "w") as f: json.dump(output, f, indent=2) print(f"Output written to: {output_path}")