@@ -57,22 +57,21 @@ while [[ $# -gt 0 ]]; do
5757done
5858
5959if [ -z " $GENERATED_FILE " ]; then
60- echo " Error: Output file path must be provided." >&2
61- echo " Usage: $0 [--input-file <path>] [--version <version>] <output-file-path>"
62- echo " "
63- echo " Options:"
64- echo " --input-file <path> Use a local JSON schema file instead of fetching from remote"
65- echo " --version <version> Specify A2A spec version (default: v0.3.0)"
66- echo " Can be a git tag (v1.0.0), branch (main), or commit SHA"
67- echo " "
68- echo " Environment variables:"
69- echo " A2A_SPEC_VERSION Override default spec version"
70- echo " "
71- echo " Examples:"
72- echo " $0 src/a2a/types.py"
73- echo " $0 --version v1.2.0 src/a2a/types.py"
74- echo " $0 --input-file local/a2a.json src/a2a/types.py"
75- echo " A2A_SPEC_VERSION=main $0 src/a2a/types.py"
60+ cat >&2 << EOF
61+ Error: Output file path must be provided.
62+ Usage: $0 [--input-file <path>] [--version <version>] <output-file-path>
63+ Options:
64+ --input-file <path> Use a local JSON schema file instead of fetching from remote
65+ --version <version> Specify A2A spec version (default: v0.3.0)
66+ Can be a git tag (v1.0.0), branch (main), or commit SHA
67+ Environment variables:
68+ A2A_SPEC_VERSION Override default spec version
69+ Examples:
70+ $0 src/a2a/types.py
71+ $0 --version v1.2.0 src/a2a/types.py
72+ $0 --input-file local/a2a.json src/a2a/types.py
73+ A2A_SPEC_VERSION=main $0 src/a2a/types.py
74+ EOF
7675 exit 1
7776fi
7877
0 commit comments