Skip to content

fix: report an unknown --a2a-version as a usage error - #157

Open
ConnorMoss02 wants to merge 1 commit into
a2aproject:mainfrom
ConnorMoss02:cli-next-a2a-version
Open

ConnorMoss02 wants to merge 1 commit into
a2aproject:mainfrom
ConnorMoss02:cli-next-a2a-version

Conversation

@ConnorMoss02

Copy link
Copy Markdown
Contributor

An --a2a-version other than 1.0 or 0.3 now returns clierr.Usage (exit 2) before connecting. Before, it registered no transports and failed with no compatible transports found, exit 1, or exit 3 when the card couldn't be reached. Added a TestUsageErrors row. It fails without the fix.

Fixes #155

An --a2a-version other than 1.0 or 0.3 registered no transports, so the
command failed with "no compatible transports found" and exit 1 (or
exit 3 when the card could not be reached). Reject it before connecting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: an unknown --a2a-version is not a usage error

1 participant